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 trialLars Wettmann
15,376 PointsCan't connect remotely to MySQL Server with MySQL Workbench
Hey guys,
mySQL workbench gives me an Error 10061 everytime I try to connect to my remote mysql server. I entered the correct IP, correct password. The user I try to connect as has % as host option. How come it still doesn't work? I saw a popup in phpmyadmin stating that the host field is being ignored if a host-table is active. I did find a host table in the mysql database but it's empty.
What can I do to fix it? Thank you.
2 Answers
miguelcastro2
Courses Plus Student 6,573 PointsMySQL on default only listens to localhost as a security precaution. You might need to make sure MySQL is listening on your external IP interface:
[mysqld]
bind-address = 0.0.0.0
By setting the bind-address to 0.0.0.0 MySQL will now listen on all interfaces.
Add this to the my.cnf file.
Lars Wettmann
15,376 PointsThanks, Miquel! Worked perfectly on my virtual private server.