- 论坛徽章:
- 0
|
我这台Server里装了Apache+php+Mysql 同时都配置好了,我想用phpMyAdmin来对Mysql进行操作,但是问题出现了:
正常情况下,我的root用户可以用php来连接mysql,可以对mysql进行操作,密码为空,但是,在phpMyAdmin里通过身份验证时,我输入的root用户都登陆不进去! 请问为什么?
我的phpMyAdmin里配置如下:
// You can disable a server config entry by setting host to ''.
$cfgServers[1]['host'] = 'localhost'; // MySQL hostname
$cfgServers[1]['port'] = ''; // MySQL port - leave blank for
default port
$cfgServers[1]['adv_auth'] = true; // Use advanced authentication?
$cfgServers[1]['stduser'] = 'root'; // MySQL standard user (only nee
ded with advanced auth)
$cfgServers[1]['stdpass'] = ''; // MySQL standard password (only
needed with advanced auth)
$cfgServers[1]['user'] = 'root'; // MySQL user (only needed with
basic auth)
$cfgServers[1]['password'] = ''; // MySQL password (only needed w
ith basic auth)
$cfgServers[1]['only_db'] = 'mysql'; // If set to a db-name,
only this db is accessible
$cfgServers[1]['verbose'] = ''; // Verbose name for this host -
leave blank to show the hostname
$cfgServers[2]['host'] = '';
$cfgServers[2]['port'] = '';
$cfgServers[2]['adv_auth'] = false;
$cfgServers[2]['stduser'] = '';
$cfgServers[2]['stdpass'] = '';
下面是显示信息:
|
|