Can't Connect to local mysql server through socket 'tmpmysql.sock'

xiaoxiao2021-03-05  22

An error message like this appears when performing PHP:

WARNING: MYSQL Connection Failed: Can't Connect To Local MySQL Server Through Socket '/TMP/Mysql.sock' (111) In /Home/httpd/html/show.php on line 9

Please use the /tmp/mysql.sock link to / var / lib / mysql directory:

Linux # ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

转载请注明原文地址:https://www.9cbs.com/read-36271.html

New Post(0)