Error connecting to database: No such file or directory
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://myunix.blog.51cto.com/191254/1704088
网站访问报
Database error
Error connecting to database: No such file or directory
2中解决办法:
1、ln -s /var/lib/mysql/mysql.sock /tmp/
2、vim /usr/local/php/etc/php.ini
mysqli.default_socket = /var/lib/mysql/mysql.sock
/etc/init.d/php-fpm restart
本文出自 “freeterman” 博客,请务必保留此出处http://myunix.blog.51cto.com/191254/1704088