简体   繁体   English

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

[英]How to connect with mysql server…?

Hello friends I'd installed WAMP server and I changed root password and now it is saying that. 朋友您好,我已经安装了WAMP服务器,并且更改了root密码,现在是这样说的。 Can't connect to SQL server password or username is wrong. 无法连接到SQL Server密码或用户名错误。

After changing MySQL password you need to set the password in config.inc.php of phpMyAdmin because the default root password is "" (empty). 更改MySQL密码后,您需要在phpMyAdmin的config.inc.php中设置密码,因为默认的root密码为"" (空)。 So now goto 所以现在去

C:\\wamp\\phpmyadmin\\ directory and open config.inc.php in any text editor and find out C:\\wamp\\phpmyadmin\\目录,然后在任何文本编辑器中打开config.inc.php并查找

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

After that save and exit from text editor. 之后,保存并退出文本编辑器。 Now restart your Wamp Server and try to access MySQL through phpMyAdmin. 现在,重新启动Wamp Server,并尝试通过phpMyAdmin访问MySQL。

For more visit Changing config.ini.php 有关更多信息,请访问更改config.ini.php

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM