如何连接mysql服务器.......?

时间:2016-08-03 03:21:54

标签: mysql phpmyadmin wampserver

您好朋友我已经安装了WAMP服务器并且我更改了root密码,现在就是这样说的。无法连接到SQL服务器密码或用户名是错误的。

1 个答案:

答案 0 :(得分:0)

更改MySQL密码后,您需要在phpMyAdmin的config.inc.php中设置密码,因为默认的root密码为""(空)。所以现在转到

C:\wamp\phpmyadmin\目录并在任何文本编辑器中打开config.inc.php并找出

$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password change this with new password

之后保存并退出文本编辑器。现在重新启动 Wamp Server 并尝试通过phpMyAdmin访问MySQL。

更多访问Changing config.ini.php

相关问题