WordPress Setup Your Local Development Environment

MySQL server light not turning on after turning servers off and on. Apache light is on. Why?

Followed instructions on opening text editor, typing "test", saving in appropriate directory, etc. That worked fine. Then followed instructions on turning servers off, then on again. After doing this though, the MySQL server light did not turn back on. Apache server light is on. What is going on here?

1 Answer

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 83,234 Points

Generally this happens because another program on your system has taken the port number that your local server has identified to use for database connections.

You can change this in your php.ini file.

It’s difficult to provide precise instructions for changing these sorts of details as there are so many different local servers out there and it’s not something to do lightly.

Try on searching on Google for your server or local server environment and the symptoms you’re experiencing (I sound like a doctor there 😂) and hopefully you’ll find some detailed instructions on how free up the port and get access to SQL on your server again.

Good luck. :-)