Ubuntu忘记MySQL密码重设方法
2017-03-29 23:28
169 查看
====================忘了mysql密码,从网上找到的解决方案记录在这里====================
结束当前正在运行的mysql进程
# /etc/init.d/mysql stop
用mysql安全模式运行并跳过权限验证
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
用空密码方式使用root用户登录 MySQL
# mysql -u root mysql
更新密码
# update user set Password = PASSWORD('root') where User ='root';
刷新权限
# FLUSH PRIVILEGES;
退出
# quit
结束当前正在运行的mysql进程
# /etc/init.d/mysql stop
用mysql安全模式运行并跳过权限验证
# mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
用空密码方式使用root用户登录 MySQL
# mysql -u root mysql
更新密码
# update user set Password = PASSWORD('root') where User ='root';
刷新权限
# FLUSH PRIVILEGES;
退出
# quit
相关文章推荐
- 零基础教你Ubuntu下忘记MySQL的root密码解决方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- MySQL 忘记root密码解决方法,基于Ubuntu 14.10
- Ubuntu忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu 安装 mysql && Ubuntu 安装 mysql 忘记初始密码解决方法
- Ubuntu下忘记MySQL密码重设方法
- ubuntu下忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu下忘记MySQL密码重设方法
- Ubuntu 16.04下忘记MySQL密码解决方法
- Ubuntu下忘记MySQL密码重设方法
- ubuntu下root 密码忘记的解决方法
- MySQL忘记管理员密码的解决方法
- ubuntu忘记密码或者密码修改坏了修复方法
- Ubuntu 忘记用户名密码的解决方法
- MySQL忘记密码处理方法解决办法