# Access denied

**URL:** <https://www.ruby-forum.com/t/access-denied/146562>\
**Category:** Rails\
**Created:** [August 22, 2008, 11:12am UTC](https://www.ruby-forum.com/t/access-denied/146562 "2008-08-22T11:12:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![redster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@redster](https://www.ruby-forum.com/u/redster)\
**Post date:** [August 22, 2008, 11:12am UTC](https://www.ruby-forum.com/t/access-denied/146562/1 "2008-08-22T11:12:59Z")

</div>

Hi All

i have run this program. i got this error

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

i am using mysql db.

below database.yml

# Install the MySQL driver:

# gem install mysql

# On MacOS X:

# gem install mysql – --include=/usr/local/lib

# On Windows:

# gem install mysql

# Choose the win32 build.

# Install MySQL and put its /bin directory on your path.

# 

# And be sure to use new-style password hashing:

# [http://dev.mysql.com/doc/refman/5.0/en/old-client.html](http://dev.mysql.com/doc/refman/5.0/en/old-client.html)

development:  
adapter: mysql  
database: murali\_development  
username: root  
password: maranam  
host: localhost

# Warning: The database defined as ‘test’ will be erased and

# re-generated from your development database when you run ‘rake’.

# Do not set this db to the same as development or production.

test:  
adapter: mysql  
database: murali\_test  
username: root  
password: maranam  
host: localhost

production:  
adapter: mysql  
database: murali\_production  
username: root  
password: maranam  
host: localhost

if any one help me…

by  
Murali

---

<div class="post-metadata">

**Author:** ![redster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/839c29/32.png) [@redster](https://www.ruby-forum.com/u/redster)\
**Post date:** [August 22, 2008, 11:52am UTC](https://www.ruby-forum.com/t/access-denied/146562/2 "2008-08-22T11:52:35Z")

</div>

hi

did u reboot your server once u modified the database.yml file?  
try

2008/8/22 Murali M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

> # [http://dev.mysql.com/doc/refman/5.0/en/old-client.html](http://dev.mysql.com/doc/refman/5.0/en/old-client.html)
> 
> test:  
> password: maranam
> 
> >

–  
IngÃ©nieur Etude & DÃ©veloppement  
Back Office  
RueDuCommerce
