Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

root password

Status
Not open for further replies.

Naoise

Programmer
Dec 23, 2004
318
IE
So the root password was set to something that is currently unknown, how can I go about resetting it?

I can see in the mysql database, ie the following path

C:/program files/mysql/data/mysql

in the file user.MYD that the user root appears to have password root but it does not seem to work. Any ideas? I don't have the disk to reinstall at the moment. Running version 4.0.21-nt, thanks

 
You could copy the user table, edit the new table to blank out the root password, stop the server, overwrite the user table files with the edited table, restart the server, and set the root password.
 
Read the Fine Manual. There is a section about just your situation. And the server can be started with a skip option so it does not need any password.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top