一、配置密码
$cfg['Servers'][$i]['password'] = 'prakash123';
$cfg['Servers'][$i]['AllowNoPassword'] = true;
二、配置auth_type
#change
$cfg['Servers'][$i]['auth_type'] = 'config';
#to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
三、修改mysql密码
SET Password=PASSWORD("newpass") WHERE User="root";
privileges: FLUSH PRIVILEGES;