Question Regarding MySQL and Ruby on Rails for Mac
I’ve just started dabbling in Ruby on Rails using O’Reilly’s example Rolling with Ruby on Rails and I’m having trouble getting it to talk to the MySQL database I have on my Mac. I’m getting the following error:
Mysql::Error in Recipe#index
Access denied for user: 'root@localhost' (Using password: YES)
Before you ask: Yes, I’m positive I’m using the right password because I can log into MySQL from the command line and through CocoaMySQL
Any help is appreciated, just post a comment.
Edit: I switched from running the server on the command line to running it from Locomotive and it works. (Well, listing and adding a new one. Haven’t gotten very far in the tutorial, yet.) Not a solution for managing a server over SSH, but a solution for developing it.
Ever figure out what caused that? I’m starting the very same tutorial right now, and am getting the same error.
Thanks!
-Rob
actually…. I’m getting “(Using Password: NO)”, even though my pass is in there.
???
Try to use blank password in both mysql and database.yml.