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

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

    There are many solutions to this problem but for my situation, I just needed to correct the DATE on the machine/server (Ubuntu 16.04 Server).

    i) Check the date of your server and correct it.

    ii) Run sudo /etc/init.d/mysql restart

    That should get it started.

提交回复
热议问题