Can't connect to MySQL server on 'localhost'(10061)解决方法

Posted DecThiry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Can't connect to MySQL server on 'localhost'(10061)解决方法相关的知识,希望对你有一定的参考价值。

有时候安装mysql后使用mysql命令时报错 Can‘t connect to MySQL server on localhost (10061)

翻译过来就是“不能连接MySql服务”

用net start mysql(这条语句是用来启动mysql)

 

https://www.jb51.net/article/26505.htm

 

以上是关于Can't connect to MySQL server on 'localhost'(10061)解决方法的主要内容,如果未能解决你的问题,请参考以下文章

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock'

Can 't connect to local MySQL server through socket '/tmp/mysql.sock ' "

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql

[MYSQL] 使用 mysql-5.6.10-win32 (MySQL 5.6纯净版 ) 出现ERROR 2003 (HY000): Can't connect to MySQL serve

MySQL报错的解决Can‘t connect to local MySQL server through socket ‘varlibmysqlmysql.soc

[Z3001] connection to database 'zabbix' failed: [2003] Can't connect to MySQL server on