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

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

    If everything worked just fine and you just started seeing this error, before you do anything else, make sure you're not out of disk space:

    df -h
    

    If the volume where the mysql.sock is being created is at 100% use, MySql won't be able to create it and this will be the cause of this error. All you need to do is delete something that's not needed, like old log files.

提交回复
热议问题