在phpmyadmin的根目录下,找到config.inc.php与config.sample.inc.php,在两个文件的30行的位置加上
$cfg['AllowArbitraryServer']='true';
这一句,改完后大概是这样:
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['AllowArbitraryServer']='true';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$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'] = false;
保存后重启phpmyadmin,就不会有这个错误了,
今天刚解决的,不知为什么,加上的那一行不打引号反而会出错 |