我刚刚在Windows 7 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图标是橙色的,这让我觉得特定的服务可能没有运行。
答案 0 :(得分:0)
重新启动wamp中的所有服务或执行此操作
希望这有帮助
编辑以添加权限 MySQL的>在上授予所有特权。到root @ localhost IDENTIFIED BY'您当前的密码' WITH GRANT
答案 1 :(得分:0)
你可以注意解决你的问题
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,你将显示登录表单:)
答案 2 :(得分:0)
请更改auth_type。使用http然后浏览。当浏览然后想要用户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设置管理员密码,请参阅 $ mysqladmin -u root密码NEWPASSWORD
但是,如果要更改(或更新)root密码,则需要使用以下命令:
$ mysqladmin -u root -p'oldpassword'password newpass
例如,如果旧密码为abc,则可以将新密码设置为123456,输入:
$ mysqladmin -u root -p'abc'password'123456'