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

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

    I was getting the error because I was running MAMP and my .sock file was in a different location. I just added a symbolic link where the app thought it should be that pointed to where it actually was and it worked like a charm.

提交回复
热议问题