Because the recent project to use PHP, need to integrate XAMPP environment, but did not contact PHP, downloaded from the official website Xampp, basically is a fool-like installation,
Complete the installation interface as follows:
Click on the Apache start to start normally, click on the MySQL start display port is occupied, because previously loaded MySQL,
After normal modification of the port (click on the MySQL config, modify the My.ini file), or prompt port 3306 is occupied,
It turns out that every time you start MySQL, you start the local MySQL service (that is, the service item that was previously loaded with MySQL),
On the Internet to check the information, said the need to modify the Apache after config PHP (php.ini) file, modify the default startup service items,
So the new service Xampp_mysql, but still have no effect, the brain is hot to the php.ini file all the MYSQL is changed to Xampp_mysql, and then out of this error,
No way, had to change will come.
Finally, the most direct method is to direct the existing MySQL service to MySQL under Xampp,
Open the Run window (win+r), enter regedit, open the registry,
Enter [Hkey_local_machine\system\currentcontrolset\services\mysql],
Change the ImagePath to the MySQL path under XAMPP, close the registry, and restart the service.
XAMPP mysql Boot