2003-Can't connect to MySQL server on 127.0.0.1'(10061 "Unknown error”)
时间: 2023-10-30 07:56:54 浏览: 186
回答: 当系统报错2003 - Can't connect to MySQL server on 'localhost' (10061 "Unknown error")时,这通常表示无法连接到MySQL服务器。这可能是由于MySQL服务器未启动导致的。你可以通过以下方法解决这个问题。首先,你可以在【服务】中查找MySQL,并确保它已经启动。如果没有启动,你可以将其设置为自动启动。另外一种方法是打开cmd,切换到mysql的bin目录下,然后输入以下命令:mysqld.exe -install net start mysql。这将安装MySQL并启动它。这样,你应该能够成功连接到MySQL服务器了。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [2003 - Can‘t connect to MySQL server on ‘localhost‘(10061 “Unknown error“)](https://blog.csdn.net/ylumwd/article/details/115392957)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [2003 -Can t connect to MySQL server on localhost (10061 “Unknown error“)的解决方法](https://blog.csdn.net/m0_51277527/article/details/127605118)[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^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文