解决:1045 access denied for user ‘root’@’localhost’ using password yes

2017-11-9    分类: 网络安全

mysql -u root -p
use mysql;
update mysql.user set authentication_string=password('密码') where user='root' ;
重启