MySQL5.7破解root密码

首先将MySQL服务stop

systemctl stop mysqld

然后使用跳过密码启动MySQL:

mysqld --user=mysql --skip-grant-tables

修改mysql库下面的user这张表

update user set authentication——string=password('123') where user='root';



猜你喜欢

转载自blog.51cto.com/13214087/2139309
今日推荐