Just configure the new rails 3.1.3 application using mysql (mysql2 gem) on CentOS 5 server / apache / passenger ... I have correctly configured the database and user for this database, and I added the login and information to my database.yml file ... I can generate material, and rake db: migrate ok, but "We're sorry, but something went wrong." the message is displayed in the browser and this message appears in my production.log file!
GET "/" will begin for xx.xxx.xx.xxx on 2011-12-29 19:52:35 -0600
Mysql2 :: Error (access denied for user "root" @ "localhost" (using password: no)):
strange, I do not use "root" as the login information for database.yml ... Any suggestions?
development:
adapter: mysql2
encoding: utf8
reconnect: false
database: the_db_I_made
pool: 5
username: the_user_I_made
password: the_password
socket: /var/lib/mysql/mysql.sock
production:
adapter: mysql2
encoding: utf8
reconnect: false
database: the_db_I_made
pool: 5
username: the_user_I_made
password: the_password
socket: /var/lib/mysql/mysql.sock
source