This situation is usually caused by the MySQL database service item you have installed before and it is occupied.
Solution:
Method 1:
In this step when installing MySQL Its default service name is "MySQL". Just change the name. You can manually change the default server name to another name you have not used.
Method 2:
Uninstall MySQL 2. Delete the installation directory and data storage directory 3. Query mysql in the registry (regedit) and delete all 4. In the c drive Query MySQL and delete all; usually under the ProgramData folder (the file is hidden and needs to be set to show hidden files) and the winbdows folder 5. Just reinstall it
Pay attention to the registry cmd -> regedit
1.HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Eventlog\Application\MySQL 目录 2.HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\Services\Eventlog\Application\MySQL 目录 3.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\MySQL 目录 4.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl001t\Services\MYSQL 目录 5.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControl002\Services\MYSQL 目录 6.HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MYSQL 目录 7.删除C:\Documents and Settings\All Users\Application Data\MySQL 目录
When installing mysql in the past, if the last step got stuck, generally these two methods can solve the problem.
Recommended courses: MySQL Tutorial.
I reinstalled mysql last night, using these two methods, but it still got stuck until the last step. I installed it five or six times, but it couldn't be installed. Finally, I looked at other people's solutions last night and solved the problem in one go. Here is a record of this method
Method 3:
1. Force quit that annoying unresponsive ticking interface, that is, force quit the task manager, this Omitted,
2. Then find your own MySQL installation folder on the local hard disk
3. Open the bin directory
4. Run MySQLInstanceConfig.exe directly (may be required Run as administrator)
5. Configure according to your normal installation options
At this time, you find that the last step has been marked with 2 √s. Even if you install it directly, there may be 2 √s. Then it gets stuck again,
then wait 5 minutes and repeat the first step
perfect solution to the problem
The above is the detailed content of What should I do if mysql installation does not respond?. For more information, please follow other related articles on the PHP Chinese website!