#1045无法登录到wamp中的MySQL服务器

Dee*_*ran 3 php mysql wamp phpmyadmin

我安装wamp 在服务器和本地机器上.在本地机器上这很好用.但是服务器中发生了一些问题.当我登录到phpmyadmin #1045无法登录到MySQL服务器时显示错误.我怎么能解决这个问题?

我的config.inc.php文件包含以下代码

/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
$cfg['Servers'][$i]['auth_type'] = 'cookie';
//$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'admin';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$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'] = false;
Run Code Online (Sandbox Code Playgroud)

请帮帮我..谢谢..

小智 5

使用默认密码登录:

Username: root

Password: [null]
Run Code Online (Sandbox Code Playgroud)

使用[null]我的意思是没有密码.