忘记root密码怎么办:
1.关闭数据库
2.使用-->mysqld_safe --skip-grant-tables &--<启动数据库
3.使用空密码进入数据库(mysql命令后直接回车)
4.使用update语句修改root密码,然后刷新权限表
5.关闭数据库并重新以正常方式启动数据库
操作步骤如下:
#service mysql stop
#mysqld_safe --skip-grant-tables &
#service mysql start
#mysql
mysql> update mysql.user set Password=password('new_password') where User='root';
mysql> flush privileges;
mysql> quit
#service mysql restart
相关文章
- 10-04mac 忘记root密码的解决方法
- 10-04liunx下忘记root密码 怎么办
- 10-04windows下MySQL 忘记初始密码
- 10-04Linux下mysql忘记root密码
- 10-04Mysql5.7忘记root密码及修改root密码的方法
- 10-04MySQL5.7 忘记root密码,怎么破?
- 10-04linux下mysql5.7忘记root密码修改
- 10-04linux系统忘记root的登录密码
- 10-04Linux忘记root用户的密码
- 10-04ubuntu下 mysql安装以后无法登陆的的解决方法((ERROR 1698 (28000): Access denied for user 'root'@'localhost'))