我的本地Apache服务器上有一个版本的phpMyAdmin。
我试图在没有密码的情况下登录,但是phpMyAdmin一直在抛出警告:
配置禁止无密码登录(请参阅AllowNoPassword)
但是,在我的config.php文件phpMyAdmin中,我设置了:
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
所以我不知道为什么这个信息还会出现。
发布于 2011-05-06 08:37:47
config.sample.inc.php
复制到config.inc.php
。
在大多数情况下,您将找到配置文件。- on linux: `/etc/phpmyadmin/config.inc.php`
- on mac: `/Library/WebServer/Documents/phpmyadmin/config.inc.php`
发布于 2015-01-30 03:31:50
根据这一点:https://www.simplified.guide/phpmyadmin/enable-login-without-password
这个$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
应该在/etc/phpmyadmin/config.inc.php
中添加两次
if (!empty($dbname)) {
// other configuration options
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
// it should be placed before the following line
$i++;
}
// other configuration options
$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;
发布于 2014-06-17 18:38:43
我检验了这份声明:
$cfg['Servers'][$i]['AllowNoPasswordRoot'] = true;
对我来说不管用。
相反,
$cfg['Servers'][$i]['AllowNoPassword'] = true;
起作用了。
谢谢!
https://stackoverflow.com/questions/5908752
复制相似问题