windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误

时间:2021-07-12 04:23:47

windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误

windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误

解决方法:

1.打开任务管理器,选择服务。

windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误

2.找到MySQL,单击右键,点击开始。

windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误

3.在windows控制台输入mysql -u root -p,输入密码,就可正常登录。

windows控制台输入mysql -u root -p报 Can't connect to MySQL server on 'localhost' (10061)错误