#1045 - Access denied for user 'root'@'localhost' (using password: YES)

一、配置密码

$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;

猜你喜欢

转载自flowerwrong.iteye.com/blog/2101947