phpmyadmin登录问题

时间:2015-07-30 17:32:01

标签: phpmyadmin wamp

每当我在地址栏上写localhost / phpmyadmin时,我都会被要求输入用户名和密码,我已尝试使用root用户名和密码空白,表示服务器http://localhost:80需要用户名和密码。我也试过一个不同的密码$ cfg ['Servers'] [$ i] ['AllowNoPassword']被设置为false但问题仍然存在。请帮忙

2 个答案:

答案 0 :(得分:0)

如果您的MySQL服务器确实有没有密码的root用户,您应该在phpMyAdmin中将$ cfg [' Servers'] [$ i] [' AllowNoPassword']设置为true 39; s config.inc.php以便以root用户身份登录。

答案 1 :(得分:0)

当WAMPServer安装时,\wamp\apps\phpmyadmin4.1.14\config.inc.php设置如下

$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;

所以,如果你的$cfg['Servers'][$i]['AllowNoPassword'] = false;,那么你或某人一直在摆弄它。

将其重新设置为此默认设置,然后重试。

如果您仍然遇到登录问题,那么您的系统上可能正在运行另一个MYSQL服务器。另一个MYSQL可能设置为在启动时自动启动,因此正在运行并停止WAMPServers MYSQL启动。然而,wampserver会看到它,并认为它是自己的MYSQL。

因此,如果是这种情况停止并且可能卸载其他MYSQL,确保其不用于重要的事情,并且为了安全而对数据库进行任何备份。

相关问题