# Instant Ruby Error

**URL:** <https://www.ruby-forum.com/t/instant-ruby-error/120500>\
**Category:** Rails\
**Created:** [November 17, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/instant-ruby-error/120500 "2007-11-17T16:57:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rikiki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikiki](https://www.ruby-forum.com/u/rikiki)\
**Post date:** [November 17, 2007, 4:57pm UTC](https://www.ruby-forum.com/t/instant-ruby-error/120500/1 "2007-11-17T16:57:28Z")

</div>

I’m a newbie on this so I set up everything in the tutorial and Apache n  
MySQL started but when I tried to run the cookbook some error happened,  
the 1st few lines is:

Mysql::Error in RecipeController#list

Access denied for user ‘root’@‘localhost’ (using password: NO)

---

<div class="post-metadata">

**Author:** ![rikiki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@rikiki](https://www.ruby-forum.com/u/rikiki)\
**Post date:** [November 17, 2007, 5:14pm UTC](https://www.ruby-forum.com/t/instant-ruby-error/120500/2 "2007-11-17T17:14:50Z")

</div>

Rikiki Angel wrote:

> I’m a newbie on this so I set up everything in the tutorial and Apache n  
> MySQL started but when I tried to run the cookbook some error happened,  
> the 1st few lines is:
> 
> Mysql::Error in RecipeController#list
> 
> Access denied for user ‘root’@‘localhost’ (using password: NO)

Hi, do you mean you’re using InstantRails?

The error above is the error that you get when Rails can’t connect to  
the database. You’ll need to check config/database.yml and see what  
properties are set for accessing the database.

Make sure that they are the same as the properties that were used/ set  
when you created the database.

Cheers,  
Mohit.  
11/18/2007 | 12:14 AM.
