zoukankan      html  css  js  c++  java
  • mysql 忘记密码

    一, 停止mysql程序

         /etc/init.d/mysqld stop  或者 kill 杀mysql的进程id

       通过安全模式启动数据库

      mysqld_safe --skip-grant-tables --skip-networking &

      查看原来数据库密码字段信息

      

       更改密码:

        5.6版本

        update mysql.user set password=PASSWORD('123') where user='root' and host='localhost';

       

       5.7版本以上

         update mysql.user set authentication_string=PASSWORD('123') where user='oldboy' and host='10.0.0.%';  

  • 相关阅读:
    Pytest学习之 autouse=True,自动调用fixture功能
    Pytest学习之xfail使用
    Pytest学习之use fixtures
    python
    python
    python
    python
    python
    python
    python
  • 原文地址:https://www.cnblogs.com/kingle-study/p/9958366.html
Copyright © 2011-2022 走看看