I\'m trying to connect to my MySQL DB with the Terminal on my Apple (With PHP).
Yesterday it worked fine, and now I suddenly get the error in the title.
The
The reason is that php cannot find the correct path of mysql.sock.
Please make sure that your mysql is running first.
Then, please confirm that which path is the mysql.sock located, for example /tmp/mysql.sock
then add this path string to php.ini:
Finally, restart Apache.