First Error in XAMPP
Today I came across an error when I try to use the XAMPP to deploy the local server envirnment. Ajax Crash Course
The error shows as below:
Second Error ‘Port Occupied’
So I googled and someone says that “Make sure you started php and mysql from xampp control panel now on your browser”, and Indeed, I didn’t turn the mysql on. When I try to turn mysql in XAMPP on, another problem popped up which says ‘Port 3306 in use by “Unable to open process”!‘:
Solution
Again, I rummaging around on StackOverflow to find the solution, and I found sth helpful:
I tried this out in my CMD:
And find one programme with PID (process Id) 6916, useful link explaining about PID: https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/finding-the-process-id And finally I found the culprit mysqld.exe
I finished it, and restart mysql in XAMPP, Then successed. The localhost problem alose solved!