方法一:
通过/scripts/setup.php来进行配置文件的设置:
如果显示“Can not load or save configuration”,“Please create web server writable folder config in phpMyAdmin toplevel directory as described in documentation. Otherwise you will be only able to download or display it.
”
请在phpMyAdmin*.*.*根目录下建立文件夹“config”,并在其中建立文件:config.inc.php,再浏览/scripts/setup.php,“Can not load or save configuration”消失。
点击Server->Add添加服务器配置信息,点击Configuration->Save保存配置信息到/config/config.inc.php,保存后请将其复制到phpMyAdmin*.*.*根目录下。
修改/libraries/config.default.php中的 $cfg['ServerDefault']=0;//为不使用默认服务器配置。
再运行phpMyAdmin就可以选择服务器了。
方法二:
也可以修改phpMyAdmin*.*.*根目录下config.sample.inc.php,复制从/* Authentication type */到/* * End of servers configuration */之间的内容,并对其进行修改,改为你要进行配置的服务器信息。然后另存为phpMyAdmin*.*.*根目录/config.inc.php。
注意:如果要连接多个服务器,推荐设置“Authentication type”为“cookie”,因为其它两种方式要先进入第一个服务器后才能再进行选择,而不能直接进入非第一个服务器。
其它两种验证方式:
如果要使用验证窗口:请将$cfg['Servers'][$i]['auth_type'] 设置为:“http”,这样在进入时同样要输入用户名和密码,但用户名和密码是在验证窗口内输入的。
如果要不登录进入请增加:
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = '用户名';
$cfg['Servers'][$i]['password'] = '密码';
当auth_type为cookie时会忽略用户名和密码项。