When installing mysql in windows xp, a problem with mysql-5.1.45-win32.msi occurs: the cocould not start the service mysql error: 0 prompts an error. After research and try, the reinstallation was successful! The procedure is as follows:
1. Start-MySQL Server 5.1-MySQL Server Instance Config Wizard-Next-Remove Instance. 2. Go to add and delete programs, find MySQL, select uninstall, and select remove. 3. Find the Mysql project in the Registry and delete it. 4. Delete the MySQL directory in disk C. 5. Go to the MySql installation directory and delete the directory. You don't need to restart your computer. Just reinstall it.
Note: 1) back up the registry before modifying the Registry. If any problem exists, it can be recovered;
2) back up the database before re-installing MySql.
In step 3, delete the following content in the registry. Some system versions may be different, but the content is roughly as follows:. HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet001 \ Services \ Eventlog \ Application \ MySQL directory Delete B. HKEY_LOCAL_MACHINE \ SYSTEM \ ControlSet002 \ Services \ Eventlog \ Application \ MySQL directory to delete C. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ Eventlog \ Application \ MySQL directory delete D. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl001t \ Services \ MYSQL directory E. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControl002 \ Services \ MYSQL directory F. HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services \ MYSQL directory
Author bjtdeyx