zoukankan      html  css  js  c++  java
  • mysql root密码破解

    破解root密码:
    方法一:
    1、
    /etc/my.cnf
    在[mysqld]段中加入
    skip-grant-table
    2、
    重启mysql
    3、
    直接mysql登录
    3、
    通过修改权限表方式修改mysql密码(update)
    4、
    去除my.cnf中skip-grant-table
    5、
    重启mysql
    6、
    使用新密码登录

    -------------------------------

    方法二:
    窗口1:
    1、停止mysql
    2、mysqld_safe --skip-grant-table
    窗口2:
    1、直接mysql进入
    mysql> update mysql.user set password=password('123456') where user='root' and host='localhost';
    mysql> flush privileges;

    窗口1:
    启动mysql

    -----------------------------

    mysql5.6修改密码时有坑(需要谨慎)

  • 相关阅读:
    kindeditor的使用
    阅读笔记(三)
    阅读笔记(二)
    架构漫谈
    阅读笔记(一)
    hdfs
    暑假周总结八
    暑假周总结七
    暑假周总结六
    暑假周总结五
  • 原文地址:https://www.cnblogs.com/fanxuanhui-linux/p/5870212.html
Copyright © 2011-2022 走看看