MySQL 忘记root 密码解决方法

 时间:2024-10-14 12:00:16

1、mysql服务正常运行ps -ef|grep mysql

MySQL 忘记root 密码解决方法

3、vi /etc/my.cnf,在[mysqld]下面加入skip-grant-tables

MySQL 忘记root 密码解决方法

5、不需要密码直接使用mysql即可登录

MySQL 忘记root 密码解决方法

7、查找系统库中用户的表名show tables;

MySQL 忘记root 密码解决方法

9、mysql> update user set authentication_string=password("haha") where user="root"; Query OK, 1 row affected, 1 warning (0.00 sec)Rows matched: 1 Changed: 1 Warnings: 1mysql> flush privileges;Query OK, 0 rows affected (0.01 sec)

10、vi /etc/my.cnf,在[mysqld]下面去掉skip-grant-tables并重启mysqld服务

MySQL 忘记root 密码解决方法
  • HTML使用嵌入图片
  • 图解WAMP中集成MySQL相关操作
  • Jquery怎么设置body的背景图片
  • html+css实现文字图标
  • 如何开启mysql的客户端服务 桌面打开
  • 热门搜索
    雪肌精化妆水怎么样 怎么算命里缺什么 n2是什么气体 如何报考在职研究生 胸口刺疼是怎么回事 如何安装水龙头 如何学好口语 农民怎么交养老保险 以微笑面对生活 迪奥真我香水怎么样