2002
phpmyadmin链接mysql错误#2002错误解决
1 检查php链接mysql是否正常
$db = mysql_connect("127.0.0.1:3306", "root", "xxxxxxxx"); if (!$db) { die('Could not connect' . mysql_error()); } echo 'Connected successfully
';
2 如果正常修改phpmyadmin配置文件
FROM
$cfg[‘Servers’][$i][‘host’] = ‘localhost’;
TO
$cfg[‘Servers’][$i][‘host’] = ‘127.0.0.1’;