在phpmyadmin目录中找到config.inc.php文件,修改如下位置即可 $cfg['Servers'][$i]['user'] = 'user'; $cfg['Servers'][$i]['password'] = 'password';