Chinaunix首页 | 论坛 | 博客
  • 博客访问: 165617
  • 博文数量: 9
  • 博客积分: 4045
  • 博客等级: 上校
  • 技术积分: 510
  • 用 户 组: 普通用户
  • 注册时间: 2007-07-19 01:35
文章分类
文章存档

2011年(1)

2010年(5)

2009年(3)

我的朋友
最近访客

分类: Mysql/postgreSQL

2010-09-28 11:22:13

MySQL root password forgotten solution:

Under the windows:

Open a command line window, stop the MySQL service: Net stop MySQL

Start MySQL, the general to the MySQL installation path, find MySQLd-nt.exe

To the directory:

C:\Program Files\MySQL\MySQL Server 5.0\bin>

 Run :MySQLd-nt –skip-grant-tables

Also open a command window, the implementation of MySQL

>use MySQL #select the database

  1.>update user set passwordpassword=password(“new_pass”) where user=”root”;
  2.>flush privileges;
  3.>exit

Use Ctrl + Alt + Del, find the process MySQLd-nt kill it, restart the MySQL-nt service, you can use the new password

MySQL root password forgotten solution: In linux under:

If MySQL is running, the first kill: killall-TERM MySQLd.

Start MySQL: bin / safe_MySQLd – skip-grant-tables &

You can access MySQL without a password.

Then :
  1.>use MySQL
  2.>update user set passwordpassword=password(“new_pass”) where user=”root”;
  3.>flush privileges;

From , post

阅读(978) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~