Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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
Jonathan Grieve
Treehouse Moderator 91,252 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. :-)