我正在努力使phpMyAdmin工作,从运行在VMWare Player中的CentOS6.3本地连接到mysql。
mysqladmin -u根-p状态表示mysql正在运行。
my.cnf和config.inc.php都指向socket `/var/lib/mysql/mysql.sock。
我尝试了127.0.0.1/phpMyAdmin和localhost.0.0.1/phpMyAdmin。
在这两种情况下,我都得到了这样的信息:
#2002 - Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)
The server is not responding (or the local server's socket is not correctly configured)有人能告诉我还有什么要查吗?
发布于 2013-03-24 07:14:05
您需要设置适当的SELinux布尔值,以允许web服务器与MySQL通信。
setsebool -P httpd_can_network_connect_db 1https://serverfault.com/questions/490866
复制相似问题