Couldnotstarttheservicemysqlerror: 0 during MySQL Installation

Source: Internet
Author: User
When you encounter a couldnotstarttheservicemysqlerror: 0 error during MySQL installation and reinstallation, you can try the following two methods. 1. Install MySQL

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. 1. Install MySQL

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.