Workaround for MySQL installation failure

Source: Internet
Author: User

For MySQL database regular installation is not, everyone is not quite a headache. For the different installation failure prompts, the following installation ideas are organized.

Difficulty 1:mysql 5.1 Apply security setting error during installation
1. Uninstall MySQL.
2. Delete the directory C:\Documents and Settings\All Users\Application Data\mysql.
3. Reinstall MySQL
Difficulty 2:mysql hint could not start the service MySQL prompt
Installation of MySQL 5.1.33, the third entry in the Execute Configurattion step when running the Server Instance Configuration Wizard error, error prompt is could not Start the service MySQL
Analysis: This situation is generally due to the installation of MySQL, uninstall is not clean caused by the uninstall after reboot and then reload. Note that the service, if not uninstalled, can be uninstalled with Mysqld-nt-remove.
Here's how:
1. Check the service for any MySQL, if any, to stop the service.
2. Run add Remove Program in Control Panel to uninstall MySQL.
3. After the uninstall open the registry, see the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services under the key value, if there is the relevant MySQL key value (MySQL, mysqladmin) is deleted, you can.
4. Restart, delete the MySQL installation remnants directory (view service, there is no MySQL in the service at this time).
5. Reinstall MySQL. Do not run the Server Instance Configuration Wizard after installation, and then run the wizard in the Start menu after the reboot.
Difficulty 3:MSYQL installation to the last step start service error
1. Go to the Control Panel and remove MySQL first.
2. Delete the MySQL directory under the C:\Program files directory in the C drive.
3. If you have a directory on another disk, you also need to delete it. Empty directories are also deleted.
4. Go to regedit to register the registry:
Hkey_local_machine/system/controlset001/services/eventlog/applications/mysql?
Hkey_local_machine/system/controlset002/services/eventlog/applications/mysql?
Hkey_local_machine/system/currentcontrolset/services/eventlog/applications/mysql
If there is, delete all! (Tip: Use the F3 loop to find "MySQL") 5. If the contents of MySQL in Task Manager are also deleted.
5. Turn off the firewall.
6. Reinstall MySQL (I did not restart the computer here).
Restart the computer, deactivate IIS, and delete temporary files in temp if necessary when reloading.
If this is not the case, when configuring MySQL, replace the MySQL service with a service name.
The above is in the installation of MySQL often encountered errors, I hope this article on everyone's learning has helped.

Workaround for MySQL installation failure

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.