打开phpMyAdmin安装目录下的config.inc.php
找到如下部分:
/* Authentication type and info */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i]['user'] = '';
$cfg['Servers'][$i]['password'] = '';
$cfg['Servers'][$i]['AllowNoPassword'] = false;
第一行是登录模式,可选择config、http以及cookie三种,当选择config时,在user及password字段填写用户名及密码(明文)并保存。