Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' (38)

后端 未结 30 2865
再見小時候
再見小時候 2020-11-22 04:23

I am having a big problem trying to connect to mysql. When I run:

/usr/local/mysql/bin/mysql start

I have the following error :

<         


        
30条回答
  •  傲寒
    傲寒 (楼主)
    2020-11-22 04:54

    In my case, I was using Centos 5.5. I found that the problem was because the mysql service was stopped some how. So I started mysql service with the command:

     /etc/init.d/mysqld start
    

    So.. silly mistake.

提交回复
热议问题