mysql - 无法登录 phpMyAdmin

标签 mysql apache phpmyadmin

我刚刚在本地安装了 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/

相关文章:

mysql - PhpMyAdmin 突然显示错误

php - 更改 MYSQL INT 值

php - 如何在mysql数据库中管理酒店预订系统的库存表

mysql - 我将如何使用 "myisam_ftdump -c"的结果创建一个新的 MySQL 表?

php - MYSQL/PHP AES_Decrypt函数传值

python - 如何在 Ubuntu 上使用 Python 查找 Apache2 的配置错误?

mysql 查询中的 PHP 变量

django - 如何重新启动在后台运行的 django 服务器?

mysql如果满足条件

php - mysql_error() 不打印错误