MySQL忘记超级用户口令的解决办法
2007-06-13 09:44
309 查看
如果MySQL正在运行,首先杀之: killall -TERM mysqld。
启动MySQL:bin/safe_mysqld --skip-grant-tables &
就可以不需要密码就进入MySQL了。
然后就是
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
重新杀MySQL,用正常方法启动MySQL 。
启动MySQL:bin/safe_mysqld --skip-grant-tables &
就可以不需要密码就进入MySQL了。
然后就是
>use mysql
>update user set password=password("new_pass") where user="root";
>flush privileges;
重新杀MySQL,用正常方法启动MySQL 。
相关文章推荐
- 详细的MySQL忘记超级用户口令的解决办法
- 解决办法之MySQL忘记超级用户口令
- MySQL忘记超级用户口令的解决办法
- MySQL忘记超级用户口令的解决办法
- mysql忘记root用户密码解决办法
- MySQL 忘记口令的解决办法
- windows下忘记mysql超级管理员root密码的解决办法
- Linux Windows下忘记mysql超级管理员root密码的解决办法
- mysql误删除root用户或者忘记root密码时的解决办法
- Mysql忘记用户密码的解决办法
- windows下忘记mysql超级管理员root密码的解决办法
- mysql误删除root用户或者忘记root密码时的解决办法
- MySql用户忘记密码时解决办法
- windows下忘记mysql超级管理员root密码的解决办法
- linux下忘记了mysql的root用户密码解决办法
- MySQL 忘记口令的解决办法
- windows下忘记mysql超级管理员root密码的解决办法(转)
- 本地用户root无法更改mysql密码与忘记本地root的登录密码解决办法
- windows下忘记mysql超级管理员密码的解决办法
- windows下忘记mysql超级管理员root密码的解决办法