Question Regarding MySQL and Ruby on Rails for Mac

Posted by Paul on January 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 says:

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

    Thanks!
    -Rob

  • Rob says:

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

    ???

  • Joe says:

    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.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2003-2012 Move to Iceland All rights reserved.
Desk Mess Mirrored v1.8.3 theme from BuyNowShop.com.