Sunday, July 5, 2009

MySQL password reset

Had a problem; I wanted to write some Java code leveraging the MySQL installation. But before I did that I just wanted to use MySQL directly.

With this in mind, I tried to fire up MySQL command line client but viola I had forgotten the password. Try as I might, I could not get the right password.

Time to do something. Search the "internets" to figure out how to reset the password. It was not as difficult as I thought it might be. Details given here made it a cinch.

And so now I have a new password which is written down and not just saved in my brain.

By the way, there seems to be good documentation on MySQL here. Also some good hints about database backups here; have to check these out.

No comments: