linux忘记mysql的root用户密码
来源:互联网 发布:想开个淘宝电子烟店 编辑:程序博客网 时间:2024/05/12 17:46
linux系统如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置:
1. KILL掉系统里的MySQL进程,(#ps -ef | grep mysqld //查看mysql进程id);
2. 用以下命令启动MySQL,以不检查权限的方式启动;
#mysqld_safe -skip-grant-tables &
3. 然后用空密码方式使用root用户登录 MySQL;
#mysql -u root
4. 修改root用户的密码;
#mysql> update mysql.user set password=PASSWORD('123456') where User=root;
#mysql> flush privileges;
5. 重新启动MySQL,就可以使用新密码登录了。
#mysql -u root -p123456
- linux忘记mysql的root用户密码
- mysql的root用户密码忘记
- Linux下MySQL中root用户密码忘记的解决方法
- linux下忘记了mysql的root用户密码解决办法
- linux下 mysql 忘记root用户密码解决办法
- linux下 mysql 忘记root用户密码解决办法
- linux下 mysql 忘记root用户密码解决办法
- Linux下 mysql忘记root用户密码
- MYSQL忘记root用户密码
- MySQL: 忘记root用户密码
- Linux 忘记root用户密码
- 忘记mysql数据库root用户密码的解决办法
- 忘记mysql的root用户密码怎么办?
- MySQL忘记root用户密码的解决办法
- linux忘记root用户密码的解决方法
- linux root用户密码忘记的解决方案
- mysql忘记root用户密码---对策
- MySQL忘记root用户密码怎么办?
- 盖茨之父:培养商界领袖的秘诀
- 端口扫描原理与代码
- 无限分类法
- prepareStatement ps.setDate(int, Date)
- SAP传输停止错误:Test call of transport control program (tp) ended with return code 0208!
- linux忘记mysql的root用户密码
- Linux用户管理(添加,删除,修改)
- heap+dijkstra与SPFA的对比
- 基于WinCE4.2的驱动开发问题精华集锦
- 数据表水平切分的ID规则
- 网络工程师考试
- 封装
- SQL convert 用法
- sql 存储过程接收表名