复制一份config.sample.inc.php为config.inc.php
并修改$cfg['Servers'][$i]['host'] = 'localhost';
为
$cfg['Servers'][$i]['host'] = '127.0.0.1';
然后刷新登陆页面,使用mysql账号登陆即可
-------------------------------------------------------------
避免每次都不需要登陆:
把认证模式从cookies改成http
$cfg['Servers'][$i]['auth_type'] = ‘http’;