Go Back   Web Server Hosting Forum by BODHost > Support > Windows Dedicated Server
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 12-04-06, 09:48
BOD Member
 
Join Date: Jul 2006
Posts: 107
Default To reset the Mysql Password on a Windows Server

1) Open Command prompt run >> cmd.

2) Go to mysql\bin directory.

3) Start Mysql with skip grant table option
Quote:
mysqld-nt --skip-grant-tables
This command will run as background process and you need to open a new command prompt to change the password.

4) Go to mysql\bin directory.

5) Login to mysql using "mysql -uroot"

6) flush privileges;

7) UPDATE user SET password=password("your root password") WHERE user="root"; #to reset password

8) GRANT ALL PRIVILEGES ON *.* TO root@localhost IDENTIFIED BY 'password' WITH GRANT OPTION; # grant all privilege

9) flush privileges;

10) \q

Now kill the mysql process which is running in background and restart MySQL service.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 03:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.