When you encounter an error "cocould not start the service MySQL error: 0" when installing or reinstalling mysql, you can try the following two methods.
I. method 1
When installing MySQL, the error "cocould not start the service mysql error: 0" is displayed. solution:
First, stop the MySQL service in the management tools> service, and then open cmd to enter your MySQL bin directory, such as C: \ Program Files \ MySQL Server 5.0 \ bin and then use the following command mysqld-nt-remove to display ...... success! Now go to add and delete programs, find MySQL and select Uninstall. Remember to select remove. Finally, delete the MySQL directory and the database directory.
I. method 2
Check whether mysql is in the service. If yes, stop the service;
Install mysql 5.1.33. An error occurs in the third Start Service in the Execute strongattion step when the Server Instance Configuration wizard is running, the error message "cocould not start the service MySQL" is displayed. (This is generally because mysql is installed and cannot be uninstalled. Uninstall and restart before reinstalling. Note that you can use mysqld-nt-remove to uninstall the service if it fails to be uninstalled ).
Run the Add/delete program on the Control Panel to uninstall mysql;
Open the registry after uninstalling and view the key values under HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services. If there is a mysql key value (mysql, mysqladmin), delete it;
Restart and delete the residual directory of mysql installation (check that mysql is not available in the Service );
Reinstall mysql. After installation, do not run Server Instance Configuration wizard. After restart, run the wizard in the Start Menu.