From: vivec manavortex Date: 2011-01-26T22:14:21+09:00 Subject: Re: Rails: Problem with test-environment and mysql2 database Thanks a lot! That helped me to nail down the problem - the test-environment-specifications weren't parsed at all. After removing the socket specification it now works. Wow, that was great support, now I wonder what may happen when I mail to the right mailing list? ;) greetings > Maybe try: > > $ cd config > $ irb >> require 'yaml' > => true >> File.open('database.yml') do |f| >> YAML::load(f.read) >> end > => {"development"=>{"adapter"=>"sqlite3", > "database"=>"db/development.sqlite3", "pool"=>5, "timeout"=>5000}, > "test"=>{"adapter"=>"sqlite3", "database"=>"db/test.sqlite3", "pool"=>5, > "timeout"=>5000}, "production"=>{"adapter"=>"sqlite3", > "database"=>"db/production.sqlite3", "pool"=>5, "timeout"=>5000}} > > and see if this is the correct result you expected. >