需要在wamp的config.ini.php(5.4.12)中更改mysql的密码

需要在wamp的config.ini.php(5.4.12)中更改mysql的密码,php,mysql,wamp,Php,Mysql,Wamp,我为mysql设置了根密码,我发现我也应该在config.ini.php中更改该密码,以便wamp工作,但在我的PHP5.4.12版本中,我在config.ini.php中找不到要更改的行,这在早期版本中存在,我只是有 $i++; /* Authentication type */ $cfg['Servers'][$i]['auth_type'] = 'cookie'; /* Server parameters */ $cfg['Servers'][$i]['host'] = 'localhos

我为mysql设置了根密码,我发现我也应该在config.ini.php中更改该密码,以便wamp工作,但在我的PHP5.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

打印config.inc.phpI的内容现在在我的问题中打印出来了。低于i++;应该还有一些我没有的其他服务器配置。请将此文件的内容替换为:$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']=;/*服务器参数/$cfg['Servers'][$i]['host']='127.0.0.1'$cfg['Servers'][$i]['connect_type']='tcp'$cfg['Servers'][$i]['compress']=false;/如果您的服务器没有mysqli*/$cfg['Servers'][$i]['extension']='mysqli',请选择mysql$cfg['Servers'][$i]['AllowNoPassword']=true;别忘了重新启动您的wampserveri正在等待您的回复,如果wamp是ok还是Not?我猜你是指phpmyadmin。。。