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 trialJosh Alexander
622 PointsmySQL 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
6,872 PointsHai , 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
622 Pointswhat is namp and where can I find it?
Yaswanth Goli
6,872 PointsSorry Brother i miss spelled it , its MAMP and its is available at here