mysql忘记root密码的解决办法
来源:互联网 发布:ubuntu划分区备份 编辑:程序博客网 时间:2024/05/18 02:46
Windows:
1.以系统管理员登陆;
2.停止MySQL服务;
3.进入CMD,进入MySQL的安装目录,假设是D:/MySQL/MySQL Server 5.0/;
4.跳过权限检查启动MySQL,
D:/MySQL/MySQL Server 5.0/bin/mysqld-nt –skip-grant-tables
5.重新打开一个CMD,进入D:/MySQL/MySQL Server 5.0/bin/,
重设root密码
D:/MySQL/MySQL Server 5.0/bin/mysqladmin -uroot flush-privileges password “newpassword”
D:/MySQL/MySQL Server 5.0/bin/mysqladmin -u root -p shutdown
将newpassword替换为你的新密码,第二个命令会让你重复输入一次新 密码。
6. 在cmd里net start mysql
Unix&Linux:
1.用root或者运行mysqld的用户登录系统;
2.利用kill命令结束掉mysqld的进程;
3.使用–skip-grant-tables参数启动MySQL Server
#mysqld_safe –skip-grant-tables &
4.然后用空密码方式使用root用户登录 MySQL;mysql -u root
5.为root@localhost设置新密码
mysql> update mysql.user set password=PASSWORD('新密码') where User='root'mysql> flush privileges;mysql> quit
6. 重新启动MySQL
- 忘记mysql的root密码的解决办法
- mysql的root密码忘记的解决办法
- Mysql忘记root密码的解决办法
- 忘记mysql root账号密码的解决办法
- 忘记mysql的root密码解决办法
- MySQL忘记root密码的解决办法
- mysql忘记root密码的解决办法
- mysql忘记root密码的解决办法
- MySQL忘记root密码时的解决办法
- mysql忘记root密码的解决办法
- MySQL忘记root密码的解决办法
- mysql忘记root密码的完美解决办法
- MAC 忘记mysql root 密码的解决办法
- mysql忘记root密码的解决办法
- mysql忘记数据库的root密码解决办法
- mysql修改root密码及root密码忘记的解决办法
- MySQL忘记root密码解决办法
- MySQL忘记root密码解决办法
- 核心动画之基本动画CABasicAnimation
- Java Filter过滤器简介
- 3.2.4页面分配策略
- hdoj 1028 Ignatius and the Princess III <递归+状态记录优化----母函数????>
- Java时间工具类(把日期时间转换成xx秒前、xx分钟前、xx小时前...)
- mysql忘记root密码的解决办法
- CodeForces】604A - Uncowed Forces
- 图形引擎(三):添加应用程序中的各种组件
- LeetCode进阶之路(Valid Parentheses)
- java基础笔记精简版2
- MySQL数据库Filesort过程
- 7.12 有一行电文,已按下面规律译成密码……
- Effective Java(二) 对于所有对象都通用的方法
- 移动端拖拽的实现效果