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


mysql is not working in xampp

i have installed xampp in windows7 apache is working whereas mysql is saying attempting to start mysql service. how to fix this .please help me

1 Answer

Ryan Watson
Ryan Watson
5,471 Points

There are several reasons why this could happen, but a common issue is a port conflict. By default, MySQL listens to port 3306. If you have another instance of mySQL already installed on your system, this could cause a conflict. Also, another program could be listening to Port 3306.

I recommend that you change the port that MySQL is listening to in the mySQL configuration file.

Read this post http://silentlyrun.blogspot.com/2013/02/how-to-change-apache-n-mysql-port-for.html#!/2013/02/how-to-change-apache-n-mysql-port-for.html , and do a search on this topic to find specific information on how to do this.

If this does not solve your issue, More information on your config will be needed to troubleshoot this issue. I would suggest posting to the Apache friends forum