标签:mysq sys user pass word etc flush update password
数据库重置密码:systemctl restart maraidb
mysql -uroot
直接登陆数据库
use mysql;
update user set password=password(‘123‘) where user=‘root‘;
flush privileges; 刷新权限
之后就是推出mysql # exit
删除skip-grant-tables
然后在重启mysql
mysql -uroot -p123
数据库的密码就重置成功了
标签:mysq sys user pass word etc flush update password
原文地址:http://blog.51cto.com/13930997/2166367