I am getting this error in production.log on my new rails app at Hostgator:
/!\ FAILSAFE /!\ Sat Sep 01 16:29:56 -0500 2012
Status: 500 Internal Server Error
Access denied for user 'root'@'localhost' (using password: YES)
The thing is, I don’t know why it would be trying to login as “root” at all.
Here is the entire content of my database.yml file:
production:
adapter: mysql
database: mwilkes_chairsales
user: mwilkes_seller
password: scrubbed
host: localhost
I have several WordPress installations that share this account, but this is the only Rails app. There is not code inside any of the models or controllers yet other than the relationships.
The config option is username, not user:
Here’s the Rails guide on configuring a database