Can't connect to MySQL server on 'localhost:3306' (10061)
时间: 2023-08-28 13:17:00 浏览: 207
Can't connect to MySQL server的解决办法
5星 · 资源好评率100%
回答: 当出现"Can't connect to MySQL server on 'localhost:3306' (10061)"错误时,可能是由于数据库连接问题导致无法连接到MySQL服务器。有几种可能的解决方法:
1. 确保以管理员身份打开cmd窗口,并在cmd窗口中执行命令"mysql -uroot -p"。如果出现错误,请尝试执行命令"mysqld --console"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [登录mysql报错 Can‘t connect to MySQL server on ‘localhost:3306‘ (10061)解决方法](https://blog.csdn.net/tulipfxs/article/details/128171481)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Can‘t connect to MySQL server on ‘localhost:3306‘ (10061) 解决方法](https://blog.csdn.net/m0_57577044/article/details/128287584)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文