Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I reinstalled MySQL and now it is asking for the current password.

Is there a command or method with which I can remove the password?

share|improve this question

2 Answers 2

The passwords for MySQL are stored within the "Mysql" database within MySQL itself.

They are in the mysql.user table (column "Password").

You would need to move the database files themselves to another location before reinstalling MySQL.

If you don't want your existing databases you can just delete the files.

I'm not sure where they get put on Windows. The files are *.MYI, *.MYD and *.frm if you want to search for them.

share|improve this answer

The database(s) are not deleted if you uninstall MySQL. Additionally you have to delete the directory C:\ProgramData\MySQL which contains on Windows 7 systems by default the database files (as long as you don't have specified a custom location).

See also: How do I completely uninstall MySQL?

share|improve this answer

protected by William Hilsum Oct 27 '11 at 8:33

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.