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 Database Foundations Installing MySQL Server and MySQL Workbench Running a Script and Using MySQL Workbench

Cannot Connect to MySQL Database Server

When trying to establish a connection to the database server in MySQL Workbench, I am prompted for a password, which I enter only to receive this message:

Cannot Connect to Database Server Your connection attempt failed for user "root" from your host to server at localhost:3306: Access denied for user 'root'@'localhost' (using password: YES)

I'm not really sure what's going on or how I can fix this issue. New to Databases and this has been stopping me from following along with the videos and learning. Any help would be appreciated.

1 Answer

Usually the password for MySQL is root, unless you've changed it.

user name: root
password: root

When I used "root" as the password I got the same message and I don't remember changing/setting a password