windows下mysql root密码丢失怎么办?如何修改root密码

不指定
2007/11/27 21:22 by:sumaxi 网络知识 本站原创 | |
如果忘记了 MySQL 的 root 密码,可以用以下方法重新设置:

1. KILL掉系统里的MySQL进程;

2. 在命令提示符下(CMD),进入到MYSQL的BIN目录,用以下命令启动MySQL,以不检查权限的方式启动;
mysqld-nt --skip-grant-tables

3. 然后重新开打一个命令提示符的窗口(CMD)用空密码方式使用root用户登录 MySQL;

mysql -u root

4. 修改root用户的密码;
mysql> update mysql.user set password=PASSWORD('新密码') where User='root';
mysql> flush privileges;
mysql> quit

5. 重新启动计算机,就可以使用新密码登录了。
Tags: , , ,
评论(16) 引用(0) 阅读(5565)
wow gold Homepage
2008/08/29 09:42
wow gold store provide cheap wow gold welcome you.
机票 Email Homepage
2008/07/28 17:44
很喜欢你的博客:国际机票
机票 Email Homepage
2008/07/28 11:20
很喜欢你的博客:国际机票
机票 Email Homepage
2008/07/25 18:45
真的很不错!!!北京打折机票
机票 Email Homepage
2008/07/25 15:22
真的很不错!!!北京打折机票
机票 Email Homepage
2008/07/24 15:00
你的博客真棒!!!北京机票
机票 Email Homepage
2008/07/24 09:26
非常喜欢你的文章,

北京打折机票
机票 Email Homepage
2008/07/24 03:39
非常喜欢你的文章,

北京打折机票
机票 Email Homepage
2008/07/23 03:53
非常好,呵呵.特价机票
机票 Email Homepage
2008/07/23 01:25
非常好,呵呵.特价机票
分页: 1/2 第一页 1 2 下页 最后页
发表评论
表情
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
emotemotemotemotemot
打开HTML
打开UBB
打开表情
隐藏
记住我
昵称   密码   游客无需密码
网址   电邮   [注册]