zoukankan      html  css  js  c++  java
  • skip-grant-tables:非常有用的mysql启动参数

    skip-grant-tables:非常有用的mysql启动参数
     
      介绍一个非常有用的mysql启动参数—— --skip-grant-tables。顾名思义,就是在启动
    mysql时不启动grant-tables,授权表。有什么用呢?当然是忘记管理员密码后有用。
     
    操作方法:
    1、杀掉原来进行着的mysql:
    rcmysqld stop
    或者:
    service mysqld stop
    或者:
    kill -TERM mysqld
     
    2、以命令行参数启动mysql:
    /usr/bin/mysqld_safe --skip-grant-tables &
           
    3、修改管理员密码:  
    use mysql;
    update user set password=password('yournewpasswordhere') where user='root';
    flush privileges;
    exit;
           
    4、杀死mysql,重启mysql.
     
     
     
     
    来自: http://www.2cto.com/database/201302/188347.html
  • 相关阅读:
    English Dictionary site for ODE and OALD
    vmic environment
    makefile
    the diference between include and import
    windows 工具命令 cmd
    python namespace
    shell cmd args
    ROE, ROC
    IP
    链接及常用软件
  • 原文地址:https://www.cnblogs.com/mjorcen/p/3926844.html
Copyright © 2011-2022 走看看