Solution to the problem that mysql cannot be installed: 1. Check whether there is mysql in the service. If so, stop the service; 2. Uninstall the MySQL service; 3. Delete the MySQL files in the registry; 4. , Delete the MySQL files on the computer; 5. Reinstall mysql.
Difficulty 1: Apply security setting error reported during MySQL 5.1 installation process
1. Uninstall MySQL
2. Delete the directory C:\Documents and Settings\All Users\Application Data\MySQL.
3. Reinstall MySQL and it will be OK.
Difficulty 2: MySQL prompt Could not start the service MySQL prompt
Install mysql 5.1.33, in the Execute configurattion step when running the Server Instance Configuration wizard Three Start Service errors occurred, and the error message was Could not start the service MySQL
Analysis: This situation is usually because mysql has been installed and uninstalled It is caused by uncleanness, uninstall, restart and then reinstall. Pay attention to the service. If it cannot be uninstalled, you can use mysqld-nt -remove to uninstall it.
The specific method is as follows:
1. Check whether there is mysql in the service, and if so, stop the service.
2. Run Add and Remove Programs in the control panel to uninstall mysql.
3. After uninstalling, open the registry and check the key values under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services. If there are related mysql key values (mysql, mysqladmin), delete them.
4. Restart and delete the remaining installation directory of mysql (check the service, there is no mysql in the service at this time).
5. Reinstall mysql. Do not run the Server Instance Configuration wizard after installation. Run the wizard in the start menu after restarting.
Difficulty 3: Start service error in the last step of msyql installation
1. Go to the control panel and delete mysql first.
2. Go to the C:\Program Files directory on the c drive and delete the mysql directory.
3. If there are settings directories on other disks, delete them as well. Empty directories must also be deleted.
4. Go to regedit and delete 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 are any, delete them all! (Tip: Use F3 loop to search for "mysql")
If the mysql content in the task manager is also deleted.
5. Turn off the firewall.
6. Reinstall mysql (I did not restart the computer here).
If necessary during reinstallation, restart the computer, disable IIS, and delete the temporary files in temp.
If that doesn't work, change the mysql service name to a different service name when configuring mysql.
The above is the detailed content of What should I do if mysql cannot be installed?. For more information, please follow other related articles on the PHP Chinese website!