When we install the mysql database, the installation failure is a very troublesome thing. next we will introduce some solutions to the failure of installing the mysql database, interested friends can refer to the mysql database installation failure! Mysql cannot be installed in the last step! Mysql cannot be installed! Is it a headache and a headache? now you don't have to worry about it. let's take a look at the reasons for mysql installation failure and the solution to mysql installation failure!
Difficulty 1:An apply security setting error is reported during MySQL 5.1 installation.
1. uninstall MySQL.
2. delete the directory C: \ Documents Ents and Settings \ All Users \ Application Data \ MySQL.
3. reinstall MySQL.
Difficulty 2:MySQL prompt cocould not start the service MySQL prompt
Install mysql 5.1.33. when running the Server Instance Configuration wizard, an error occurs in the third Start Service in the Execute restart attion step. the error message is "cocould not start the service MySQL ".
Analysis:This situation is generally caused by the installation of mysql and The uninstallation is not clean. after The uninstallation, restart and re-install it. Note that you can useMysqld-nt-removeUninstall.
The specific method is as follows:
1. check whether mysql is in the service. If yes, stop the service.
2. run the add/delete program on the control panel to uninstall mysql.
3. 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.
4. restart and delete the residual installation directory of mysql (view the service, and mysql is no longer in the service ).
5. reinstall mysql. after installation, do not run Server Instance Configuration wizard. after restart, run the wizard in the Start menu.
Difficulty 3:Msyql installation to the last step start service error
1. delete mysql in the control panel.
2. delete the mysql directory under drive C: \ Program Files.
3. if you still have a directory set on another disk, delete the. empty directory.
4. go to regedit to set 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 yes, delete all! (Tips:Use F3 to search for "mysql") 5. if the mysql content in the task manager is also deleted.
5. shut down the firewall.
6. reinstall mysql (I have not restarted the computer here ).
Restart the computer, disable IIS, and delete temporary files in temp if necessary.
If this is not the case, change the mysql service name when configuring mysql.
These are common errors when installing mysql. For more information, see PHP Chinese network (www.php1.cn )!