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!
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
Cannot Connect to Database Server
When trying to test the connection for the admin remote db connection I am unable to connect to it because I don't know what the password is and I get the following error.
Your connection attempt failed for user 'admin' from your host to server at 127.0.0.1:3306: Access denied for user 'admin'@'localhost' (using password: YES)
Please: 1 Check that mysql is running on server 127.0.0.1 2 Check that mysql is running on port 3306 (note: 3306 is the default, but this can be changed) 3 Check the admin has rights to connect to 127.0.0.1 from your address (mysql rights define what clients can connect to the server and from which machines) 4 Make sure you are both providing a password if needed and using the correct password for 127.0.0.1 connecting from the host address you're connecting from
You need to login as root and then create the users before setting up the connections.
Here is a basic tutorial:
They are using the terminal to do this, but you can get the same results if you do it in workbench. Set up the new user and their permissions then create a connection.