我为mysql设置了根密码,我发现我也应该在config.ini.php中更改该密码,以便wamp工作,但在我的php 5.4.12版本中,我在config.ini.php中找不到要更改的行,这在早期版本中存在,我只有。
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* 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'] = true;
这是您必须更改的文件的路径:
C: ''wamp''apps''phpmyadmin''config.inc.php