Mysql5.7破解root密码

alex 默认评论阅读模式

 
 

停止mysql服务

Mysqld --skip-grant-tables //windos

 
 

mysqld_safe --skip-grant-tables &
//linux

 
 

使用mysql -u root 直接进行登陆

等进去之后执行 mysql> flush PRIVILEGES;

重新设置密码 mysql> alter user 'root'@'localhost' identified by '1234567';

执行 mysql> flush  tables; 并退出

文章末尾固定信息

 
alex
  • 本文由 alex 发表于 2017年6月19日 16:00:49
  • 转载请务必保留本文链接:https://www.qnjslm.com/ITHelp/129.html
匿名

发表评论

匿名网友
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:
确定