一、以空密码状态登陆phpMyAdmin并修改root用户密码
二、编辑phpMyAdmin目录下的文件config.inc.php
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config'; 将改为“cookie”或“http”;$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;