I deployed a Rails application and get 500 errors on all pages. My production.log does not show anything (which is the problem), but I did a "script / console production" and tried to run a simple request (User.find: first), and it produces the following:
Access denied for user 'root'@'localhost' (using password: NO)
My database.yml file definitely has a password and it is correct.
So, this plus the lack of errors logged in my production.log file makes me wonder what happened.
Any ideas where I will start looking or what might be the problem?
Also, for what it's worth it, I'm running Passenger on Apache.
UPDATE: here is the contents of the database database.yml
development: adapter: mysql encoding: utf8 database: website_development username: root password: secretz socket: /tmp/mysql.sock test: adapter: mysql encoding: utf8 database: website_test username: root password: secretz socket: /tmp/mysql.sock production: adapter: mysql encoding: utf8 database: website_production username: ttp_mysql password: secretz socket: /var/run/mysqld/mysqld.sock
NEW UPDATE: I changed the mysql user, so it didnโt work in the root, but now I still get the "Access denied for" root @localhost bit .. although in production mode it should not work as the "root" at all.
Really really confused.
source share