Action Controller: Exception caught.

153 views
Skip to first unread message

Thouba Nahakpam

unread,
Mar 23, 2020, 11:41:41 AM3/23/20
to Ruby on Rails: Talk
Hello,
When I try to access localhost:3000, it shows ActiveRecord::NoDatabaseError. Can anybody tell me how to fix it? I have attached a screenshot of it below.
Thanks.

RAD.JPG


Walter Lee Davis

unread,
Mar 23, 2020, 11:58:26 AM3/23/20
to rubyonra...@googlegroups.com
It appears that you have configured a database, but that database isn't running correctly, or doesn't have a user named "root". That name is commonly used in a default MySQL install. If you're using a different database engine, then the default user may be named differently. That's where I would start looking. The answer will be very specific to your own server.

Walter

> On Mar 23, 2020, at 11:11 AM, Thouba Nahakpam <samsun...@gmail.com> wrote:
>
> Hello,
> When I try to access localhost:3000, it shows ActiveRecord::NoDatabaseError. Can anybody tell me how to fix it? I have attached a screenshot of it below.
> Thanks.
>
> <RAD.JPG>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/980a2a38-5cf3-4b4d-9e39-582e47604538%40googlegroups.com.
> <RAD.JPG>

SM Ehsan

unread,
Mar 23, 2020, 6:27:18 PM3/23/20
to rubyonra...@googlegroups.com
Hello,
I think you misconfigure the database.
There is no database username named root.

Please check the database.yml file. 

Thank you

Reply all
Reply to author
Forward
0 new messages