How to completely remove MySQL from Windows system
Whenever you uninstall MySQL server from “Add/Remove Programs”, only the installed components are removed. The database information (including the tables and data), import or export files, log files, and binary logs produced during execution are kept in their configured location.
You may experience problem reinstalling MySQL server even if you have uninstalled it from “Add/Remove Programs”. During re-installation, it will ask you to enter current root password even if MySQL server is not installed.
You are experiencing this problem because during removal process, it does not remove data and configuration settings. To fix this problem, you have to follow the below procedures:
For Windows 7 and Windows 2008 server:
 Uninstsall MySQL server from “Add/Remove Programs”
 Delete C:\Program Files\MySQL [Make sure that you delete the data related to MySQL server]
 Delete C:\Program Files (x86)\MySQL [Make sure that you delete the data related to MySQL server]
 Delete C:\ProgramData\MySQL [Make sure that you delete the data related to MySQL server]
 Delete from any Users’ AppData folders.
 Reinstall MySQL server
For Windows 2003 (may work for Windows XP):
 Delete the associated data directory. On Windows XP and Windows Server 2003, before MySQL 5.1.24, the default data directory would be located within the MySQL installation directory.
 On MySQL 5.1.24 and later, the default data directory is the configured AppData directory, which is C:\Documents and Settings\All Users\Application Data\MySQL by default.
After following above steps, if you still see “MySQL” in the service list, run the following command in command prompt to remove the service:
sc delete MySQL
If your service name is MySQL5 or other replace MySQL with appropriate name.
If you want to keep your databases as they are, make sure you take backup of “data” directory instead of removing this folder. You should be able to restore your data directory once MySQL server is re-installed successfully.