把文件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
~~~