ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
1查看用户进程
ps -u mysql
2删除相关进程
kill -9 进程号
3启动mysql时不启动grant-tables
/usr/bin/mysqld_safe --skip-grant-tables &
4进入数据库
mysql
5修改管理员密码
use mysql
update user set password=password('yournewpassword
原创
2017-04-19 09:32:49 ·
473 阅读 ·
0 评论