.创建文件夹config;拷贝.config.inc.php到,\config\config.inc.php
浏览器中执行http://localhost/phpmyadmin/setup,根据自己主题填写host,user,password
.设置保存后,拷贝.\config\config.inc.php到.\config.inc.php(原来文件最好能备份一下)文件config.inc.php
$cfg['servers'][$i]['allownopassword']解释$cfg['servers'][$i]['allownopassword']
type: boolean
default value: false
whether to allow logins without a password.the default value of false for this parameter prevents unintended access to amysql server with was left with an empty password for root or on which ananonymous (blank) user is defined.