我目前在我的 phpmyadmin 中遇到此错误:
2002 - 服务器没有响应(或本地 MySQL 服务器的套接字配置不正确)
我尝试了谷歌搜索并尝试了我找到的每个解决方案。不幸的是,没有什么对我有用。
顺便说一下,我正在使用 wamp 服务器。
下面是我从 C:\wamp\apps\phpmyadmin3.2.0.1 配置的 config.inc.php 配置文件。
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = 'localhost';
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['port'] = '';
$cfg['Servers'][$i]['socket'] = '/tmp/mysql.sock';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
最佳答案
这里有可能的解决方案:http://forums.mysql.com/read.php?35,64808,254785#msg-254785 在这里:http://forums.mysql.com/read.php?35,23138,254786#msg-254786
所有这些都是配置设置。就我而言,我有两台计算机,XAMPP 中的所有内容都已同步。在另一台计算机上,phpMyAdmin 确实启动正常。所以我的问题似乎出在特定的计算机上,而不是配置文件。停止防火墙没有帮助。
最后,或多或少的偶然,我碰到了文件:
...path_to_XAMPP\XAMPP...\mysql\bin\mysqld-debug.exe
双击该文件奇迹般地让我回到了 PhpMyAdmin。 发布在这里以防任何人也能从中得到帮助。
关于mysql - wamp 服务器中的服务器没有响应(或本地 MySQL 服务器的套接字配置不正确),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10178547/