Access denied for user 'root'@'localhost'

0 views
Skip to first unread message

Manika Suri

unread,
May 2, 2008, 1:13:36 AM5/2/08
to rubyonra...@googlegroups.com
I am getting error
Access denied for user 'root'@'localhost' (using password: NO)

i saw in database.yaml
Install MySQL and put its /bin directory on your path.
how to set it

Attachments:
http://www.ruby-forum.com/attachment/1828/database.yml

--
Posted via http://www.ruby-forum.com/.

Rails Terrorist

unread,
May 2, 2008, 1:37:08 AM5/2/08
to rubyonra...@googlegroups.com
Manika Suri wrote:
> I am getting error
> Access denied for user 'root'@'localhost' (using password: NO)
>
> i saw in database.yaml
> Install MySQL and put its /bin directory on your path.
> how to set it


Example app_name/config/database.yml :

development:
adapter: mysql
database: teapoci_development
username: root
password:
host: localhost


make sure that your database login in mysql is correct, like password or
username.

Dale Cunnigham

unread,
May 22, 2008, 9:05:39 AM5/22/08
to rubyonra...@googlegroups.com
Manika Suri wrote:
> I am getting error
> Access denied for user 'root'@'localhost' (using password: NO)
>
> i saw in database.yaml
> Install MySQL and put its /bin directory on your path.
> how to set it

You may also have to log on to MySQl as root with -P option and GRANT
permission for root to access the database.

Reply all
Reply to author
Forward
0 new messages