Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

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

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

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

Not the answer you're looking for? Browse other questions tagged .