我真的需要帮助来解决这个错误,因为下周一是我最后一年的项目演示.我不知道如何解决这个问题.
我试着按照这个http://www.ishaanrawat.com/solved-wampserver-1045-access-denied-for-user-rootlocalhost-using-password-no/指令,但我得到了同样的错误.
而且,几分钟前,我卸载wamp服务器,希望再次安装后,我可以正常使用我的wamp服务器,但仍然是同样的错误.
以下是错误:
MySQL说:文档
phpMyAdmin尝试连接到MySQL服务器,服务器拒绝连接.您应该检查配置中的主机,用户名和密码,并确保它们对应于MySQL服务器管理员提供的信息.
你可以看为您解决问题
http://www.youtube.com/watch?v=BgcW4h6ZAro&t=7m21s
P/S:这是越南视频:)
在config.inc.php你编辑如下因素代码:
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//uncomment this
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//comment this
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysql if your server does not have mysqli */
$cfg['Servers'][$i]['extension'] = 'mysqli';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
Run Code Online (Sandbox Code Playgroud)
然后退出wampserver,重新打开wampserver,打开PHPMyadmin,你将显示登录表单:)
| 归档时间: |
|
| 查看次数: |
52223 次 |
| 最近记录: |