把文件phpMyAdmin/config.sample.inc.php的文件名改成config.inc.php
把文件中的
`$cfg['Servers'][$i]['auth_type'] = 'cookie';`
替换成
`$cfg['Servers'][$i]['auth_type'] = 'config';`
然后添加下面的代码,数据库用户名和密码替换成自己的
~~~
$cfg['Servers'][$i]['user'] = 'root'; // set mysql username
$cfg['Servers'][$i]['password'] = 'root'; // set mysql password
~~~