Home >Database >Mysql Tutorial >关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to_MySQL

关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-01 13:41:161021browse

CentOS

bitsCN.com
关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to local MySQL的问题 关于CentOS输入mysql提示:
 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)     关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to_MySQL
 原因可能是mysql服务没有启动,输入命令: # service mysqld start 显示: Starting mysqld:  [  OK  ] 证明启动成功了!
 现在可以访问mysql了:
关于CentOS输入mysql提示ERROR 2002 (HY000):Can't connect to_MySQL
  bitsCN.com
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn