谁能确认 phpMyAdmin AllowNoPassword 适用于 MySQL 数据库?适用于、谁能、数据库、AllowNoPassword

由网友(低吟゛花非花的格调)分享简介:I have a version of phpMyAdmin located on my local Apache server.I am trying to login without a password however phpMyAdmin keeps throwing the warning:Login wit...

I have a version of phpMyAdmin located on my local Apache server.

I am trying to login without a password however phpMyAdmin keeps throwing the warning:

80sec发XML解析安全警告 phpMyadmin爆任意文件读取漏洞

Login without a password is forbidden by configuration (see AllowNoPassword)

However in my config.php file for phpMyAdmin I have set:

$cfg['Servers'][$i]['AllowNoPassword'] = TRUE;

So I don't know why the message is still appearing.

解决方案

Copy config.sample.inc.php to config.inc.php.

In most cases you will find the config file

on linux: /etc/phpmyadmin/config.inc.php on mac: /Library/WebServer/Documents/phpmyadmin/config.inc.php

If you are trying to log in as root, you should have the following lines in your config:

$cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['AllowNoPassword'] = true;

阅读全文

相关推荐

最新文章