zoukankan      html  css  js  c++  java
  • 重设mysql数据库root用户密码

     原文:http://blog.sina.com.cn/s/blog_a3695da601010mrs.html
     

    1, 启用任务管理器,结束mysql进程
     
    2,进入命令行,进入mysql的bin目录(<环境变里>path里面可以找到bin目录)启动mysql服务:
    mysqld -nt --skip-grant-tables  (以不检查权限的方式启动);
    (可能会出现:120705 17:41:14 [Warning] option 'new': boolean value 't' wasn't recognized. Set to OFF.不过依然可以继续。)

    3,重新打开一个命令提示窗口
       输入:mysql -uroot
     
    4, 修改root密码:
       update mysql.user set authentication_string=PASSWORD('newpass') where User='root';
    5, flush privileges;
    6, quit
    忘记了mysql数据库root用户密码
    重新连接mysql
  • 相关阅读:
    es6
    vue-router
    vue-lazyload
    java-number2
    echart事件
    weui了解
    java-number
    Java判断语句
    java 循环控制
    The access type for the readers of the blog.
  • 原文地址:https://www.cnblogs.com/leo388/p/5389343.html
Copyright © 2011-2022 走看看