WAMP phpMyAdmin无法打开

时间:2014-05-24 15:00:44

标签: php mysql phpmyadmin localhost wamp

我刚刚在Windows 7 64位计算机上安装了WampServer版本2.5。 当我尝试打开phpmyadmin时,我在浏览器中收到此消息:

enter image description here

我查看了我的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图标是橙色的,这让我觉得特定的服务可能没有运行。

3 个答案:

答案 0 :(得分:0)

重新启动wamp中的所有服务或执行此操作

  1. 打开命令提示符>像这样的wql的mysql目录 C:\ WAMP \ BIN \ mysql的\ mysql的版本\ BIN \ 然后我们创建一个新密码
  2. 输入命令mysqladmin -u root password NEWPASSWORD
  3. 使用wamp status icon
  4. 重新启动所有服务

    希望这有帮助

    编辑以添加权限 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'