我刚刚在本地安装了 phpMyAdmin(运行 Apache 和 Windows)。我的问题是,我不断收到此错误:
2002 无法登录MySQL服务器
我检查了错误文件,它显示:
httpd.exe: Could not reliably determine the server's fully qualified domain
name, using xxxxx for ServerName
[Wed Dec 20 10:33:48 2017] [notice] Digest: generating secret for digest
authentication ...
[Wed Dec 20 10:33:48 2017] [notice] Digest: done
[Wed Dec 20 10:33:48 2017] [notice] Child 8680: Child process is running
[Wed Dec 20 10:33:48 2017] [notice] Child 8680: Acquired the start mutex.
[Wed Dec 20 10:33:48 2017] [notice] Child 8680: Starting 64 worker threads.
[Wed Dec 20 10:33:48 2017] [notice] Child 8680: Starting thread to listen on
port 10081.
[Wed Dec 20 10:33:48 2017] [notice] Child 8680: Starting thread to listen on
port 80.
[Wed Dec 20 10:33:48 2017] [notice] Child 1096: All worker threads have
exited.
[Wed Dec 20 10:33:49 2017] [notice] Child 1096: Child process is exiting"
这是什么意思以及如何解决这个问题?预先感谢:)
最佳答案
检查你的my.cnf文件,并启动socket模式,类似
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'socket';
并尝试访问它
关于mysql - 无法登录 phpMyAdmin,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47898152/