Ruby Forum Ruby on Rails > connecting with mysql

Posted by Manika Suri (mani)
on 30.04.2008 14:13
I created new project with rails mysql -d <pname>
but now I am creating controller I am getting error
I also installed mysql with gem install mysql
Access denied for user 'root'@'localhost' (using password: NO)
what is the solution?
Posted by Frederick Cheung (Guest)
on 30.04.2008 14:57
(Received via mailing list)
On 30 Apr 2008, at 13:13, Manika Suri wrote:

>
> I created new project with rails mysql -d <pname>
> but now I am creating controller I am getting error
> I also installed mysql with gem install mysql
> Access denied for user 'root'@'localhost' (using password: NO)
> what is the solution?

Make the username and password in your database.yml correspond to
users with access to your database.


Fred
Posted by Roy Pardee (rpardee)
on 30.04.2008 17:16
(Received via mailing list)
Does the root account in mysql need a password?  If so, have you added
that password to <<app root>>/config/database.yml?
Posted by Manika Suri (mani)
on 01.05.2008 13:09
Roy Pardee wrote:
> Does the root account in mysql need a password?  If so, have you added
> that password to <<app root>>/config/database.yml?
now tell mehow to create a database in sqlite with ruby on rails.and 
connect with it .I m noot getting