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

Ruby

Michael Hulet
Michael Hulet
47,913 Points

Root Password for MySQL on the Treehouse VM?

I asked this on the forum nearly 2 weeks ago, but I received no response, so I'm posting it again. I'm trying to take the ActiveRecord Basics course using the Treehouse VM used in earlier Ruby videos, and when it comes to rake db:create after setting the projects database to be MySQL (when running rails new), I get an error saying: "Access denied for user 'root'@'localhost' (using password: NO)Please provide the root password for your MySQL installation". My question is, what is that root password? I'm using the version of the VM downloaded for the Build a Todo List Application with Rails 4

2 Answers

Misha Shaposhnikov
Misha Shaposhnikov
8,718 Points

The password is usually "mike the frog" with spaces.

Michael Hulet
Michael Hulet
47,913 Points

Not in this case, apparently. I just tried that, and it didn't work

seiichi tanaka
seiichi tanaka
16,378 Points

I had the same problem. I had downloaded from Installing a Ruby Development Environment course. I don't know when I set a password, but that treehouseVM's mysql set password. In my environment, password is treXXXXXe (Please replace XXXXX corret word), so I reset password.