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

Development Tools

Josh Alexander
Josh Alexander
622 Points

mySQL Will not connect

Getting this error when trying connect to a localhost in MYSQL workbench.

Could not connect to MySQL server: Can't connect to MySQL server on '127.0.0.1' (61) You may continue if the server is simply not running

3 Answers

Yaswanth Goli
Yaswanth Goli
6,872 Points

Hai , If you are mac user install namp or if you are windows user install xampp

in php file

use mysql_connect or mysqli_connect or PDO classes

i use mysqli_connect eg:$con=mysqli_connect("localhost","username","password","database name");

Josh Alexander
Josh Alexander
622 Points

what is namp and where can I find it?

Yaswanth Goli
Yaswanth Goli
6,872 Points

Sorry Brother i miss spelled it , its MAMP and its is available at here