我最近刚刚在我的Windows7 64位机器上安装了WampServer 2.5版。当我尝试打开phpmyadmin时,在浏览器中收到以下消息:

我检查了我的config.inc.php文件,一切似乎都很正常。以下是内容:
* First server
*/
$i++;
/* 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'] = '';
/* 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;有谁能解释一下这个问题吗?非常感谢,我也应该指出WAMP图标是橙色的,这让我认为可能某个特定的服务可能没有运行。
发布于 2014-05-24 23:07:44
重新启动wamp中的所有服务或执行以下操作
重新启动所有服务
希望这能有所帮助
编辑以添加权限mysql>授予所有权限。到root@localhost,标识为‘your current password’WITH GRANT
发布于 2014-05-26 21:59:45
你可以通过观看来解决你的问题
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;然后退出wampserver,重新打开wampserver,打开PHPMyadmin,您将显示登录表单:)
发布于 2014-05-26 22:52:03
请更改auth_type .Use http,然后browse.when浏览,然后需要用户id并传递给正确的用户id并传递:
/* Authentication type */
$cfg['Servers'][$i]['verbose'] = 'mysql wampserver';
//$cfg['Servers'][$i]['auth_type'] = 'cookie';
**$cfg['Servers'][$i]['auth_type'] = 'http';**
$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;如果没有为mysql设置管理员密码,请参见$根密码-u
但是,如果要更改(或更新) root密码,则需要使用以下命令:
$ mysqladmin -u根密码-p‘’oldpassword‘密码新传递
例如,如果旧密码是abc,则可以将新密码设置为123456,请输入:
$ mysqladmin根密码-p‘’abc‘-u '123456’
https://stackoverflow.com/questions/23846461
复制相似问题