`

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

    博客分类:
  • wamp
阅读更多

一、配置密码

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

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics