Workaround:
1. Management tool---Service inside stop MySQL service.
2. Control Panel---Uninstall MySQL, delete C:\Program files\mysql directory.
3.
This is the most critical step, only the first two steps, the password or can not be modified, because MySQL also has files, that is, in C:\Documents and Settings\All Users\Application Data inside the MySQL folder, This file is not cleared and is the source of the old password for MySQL reload. Then delete the MySQL folder.
4. Check if there are my.ini files in the C:\WINDOWS directory and delete them
5. Heky_local_machine,software,mysql deletion in the registration table
hkey_local_machine\system\controlset001\services\eventlog\application\mysql Directory Removal
hkey_local_machine\system\controlset002\services\eventlog\application\mysql Directory Removal
hkey_local_machine\system\currentcontrolset\services\eventlog\application\mysql Directory Removal
MySQL Error nr.1045