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

后端 未结 30 2714
再見小時候
再見小時候 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:47

    you can always start mysql server by specifying the location of the mysql.sock file using the --socket option like

    mysql --socket=/var/mysql/mysql.sock 
    

    This will work even if the location of socket file in specified in a different location in the my.cnf file.

提交回复
热议问题