Question Regarding MySQL and Ruby on Rails for Mac

Posted by Paul on Jan 6, 2006 in Uncategorized |

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.

Tags: , , ,

3 Comments

Rob
Jan 27, 2006 at 10:59 pm

Ever figure out what caused that? I’m starting the very same tutorial right now, and am getting the same error.

Thanks!
-Rob


 
Rob
Jan 27, 2006 at 11:06 pm

actually…. I’m getting “(Using Password: NO)”, even though my pass is in there.

???


 
Joe
Jun 7, 2006 at 4:57 pm

Try to use blank password in both mysql and database.yml.

Editor: This is a very bad suggestion. This would allow anyone to edit your database if they got into your system. Don’t anyone do this. Ever.


 

Reply

Copyright © 2010 Move to Iceland All rights reserved.
Desk Mess Mirrored v1.3 theme from BuyNowShop.com.