【问题标题】:WAMP phpMyAdmin won't openWAMP phpMyAdmin 无法打开
【发布时间】:2014-07-13 19:55:59
【问题描述】:

我最近刚刚在我的 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 图标是橙色的,这让我觉得可能某个特定服务可能没有运行。

【问题讨论】:

标签: php mysql phpmyadmin localhost wamp


【解决方案1】:

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

  1. 打开命令提示符> wamp 的 mysql 目录如下 c:\wamp\bin\mysql\mysql-版本\bin\ 然后我们创建一个新密码
  2. 输入命令mysqladmin -u root密码NEWPASSWORD
  3. 使用 wamp 状态图标重新启动所有服务

希望对你有帮助

编辑以添加权限 mysql> GRANT ALL PRIVILEGES ON . TO root@localhost IDENTIFIED BY 'your current password' WITH GRANT

【讨论】:

  • 我按照你的建议做了,收到了这条消息:Access denier for user root@localhost (using password: NO)
  • 我刚刚安装了最新版本
  • 检查该用户是否拥有所有权限
【解决方案2】:

您可以观看以解决您的问题
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,您将显示登录表单 :)

【讨论】:

    【解决方案3】:

    请更改 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' 密码新密码

    例如,如果旧密码是abc,可以设置新密码为123456,输入:

    $ mysqladmin -u root -p'abc' 密码'123456'

    【讨论】:

      猜你喜欢
      • 2016-05-24
      • 2019-07-18
      • 2016-08-14
      • 2013-08-18
      • 2017-07-04
      • 2016-01-22
      • 2014-07-30
      • 2015-05-25
      • 2014-01-12
      相关资源
      最近更新 更多