MySQL reinstalled, but root password still there and I forgot it

Tim picture Tim · May 20, 2011 · Viewed 34.2k times · Source

I forgot my root password in MySQL 5.1 on Windows 7 I uninstalled and deleted the MySQL directory in Program Files

Then I installed 5.5, but get error 1045, saying: Access denied for user: 'root@localhost'

I thought that uninstalling MySQL, and reinstalling would allow me to create a new root password, but apparently not. Please help!

Answer

chelmertz picture chelmertz · May 20, 2011

There's a guide on mysql.com called Resetting the Root Password: Windows Systems.