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
When you face the following issue:
PHP throwing error "Warning: mysql_connect() http://function.mysql-connect: 2002 No such file or directory (trying to connect via unix:///tmp/mysql.sock)"
Set "mysql.default_socket" value in your /etc/php.ini
to
"mysql.default_socket = /var/mysql/mysql.sock".
Then restart web service in server admin