#2002 - 服务器没有响应 (or the local MySQL server's socket is not correctly configured)

来源:互联网 发布:xcode怎么编写java 编辑:程序博客网 时间:2024/05/16 16:02
运行phpmyadmin显示#2002 - 服务器没有响应 (or the local MySQL server's socket is not correctly configured)


解决原因:在/tmp下看到有个mysql.sock文件后

在编辑php.ini文件
mysql.default_socket = /tmp/mysql.sock

重启apache。