MySql安装后写命令提示 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
高洛峰
高洛峰 2017-04-17 11:31:29
0
3
676

从官方渠道下载了MySQL-server-5.5.37-1.linux2.6.x86_64.rpm
通过rpm -ivh命令安装,安装在安装目录下后写命令mysql -uroot
提示 Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

咋整啊

高洛峰
高洛峰

拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...

reply all(3)
左手右手慢动作

问题解决.
http://stackoverflow.com/questions/21103197/cant-connect-to-local-mysql-server-through-socket-var-lib-mysql-mysql-sock

Peter_Zhu
  1. Check whether mysql-server is started ps aux | grep mysql
  2. If it does not start, check the mysql error log and post the log. The log is usually under /var/log

I think it’s probably because mysql-server failed to start successfully

阿神

The sock paths used by the client and server in the configuration file should be consistent

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template