Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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 90,704 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. :-)