Warning: mysqli_connect() [function.mysqli-connect]: [2002] No such
file or directory (trying to connect via unix:///var/mysql/mysql.sock) in
xxx.php on line 14
解决方案:
cd /var
sudo mkdir mysql
sudo chmod 755 mysql
cd mysql
ln -s /tmp/mysql.sock mysql.sock
mysql链接错误,布布扣,bubuko.com
时间: 2024-10-18 04:15:16