今天在进行MySQL运行操作时,遇到了“Can't connect to MySQL server on 'localhost:3306' (10061)”的提示,这让人颇为困扰。为了解决这一问题,我尝试了在网络上查找解决方案,最终找到了一篇名为“MySQL数据库:Can not connect to MySQL server 解决方法”的文章,作者是demon_倔强青铜,该文章发布在CSDN博客上。
根据文章的指导,解决步骤如下:首先,打开“计算机管理”窗口,然后在窗口中找到“服务和应用程序”模块并展开,接着在其中找到“服务”部分。在这里,你需要查找名为“MySQL80”的服务(注意,每个人的服务名称可能不同)。一旦找到,确保该服务处于启动状态。如果服务没有启动,尝试手动启动它。完成以上步骤后,问题通常会得到解决。
总结一下,这次遇到的问题是与MySQL服务启动状态有关的连接问题。通过重新启动MySQL服务,我们成功地解决了“Can't connect to MySQL server on 'localhost:3306' (10061)”的提示,使得MySQL运行恢复正常
I didn’t understand it before, I never replied to posts, and I never upgraded or gained experience. Now I understand, anyway, you can level up by replying with 15 words, and you can also gain experience. Upgrading requires experience, so I copied this sentence and reply when I see it. It’s quite interesting!