Posts Tagged ‘gotcha’

Gotcha : Mysql::Error: Unknown database 'application_name_test' /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'

Posted in Uncategorized on July 19th, 2009 by ph-lee – Be the first to comment

After dealing with thisGotcha : Mysql::Error: Access denied for user ‘root’@’localhost’ you’ve hit another problem of…

This means rails is looking for the test database but can’t find it cause it’s not there. Simply got to mysql Query Browser or command line, whichever you prefer and create a new database/schema of your application_name followed by _test so for example

my_app_test

Theres no need to copy/clone the database structure a across. Rails will replicate the development database as the test database.

Gotcha : Mysql::Error: Access denied for user 'root'@'localhost' (using password: NO) /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'

Posted in Uncategorized on July 19th, 2009 by ph-lee – 1 Comment

So you decided to run some tests on your new rails project and this error crops up…

Looks like you forget to configure the test database parameters in the configuration/database.yml file.