What\'s the use of socket declaration in config/database.yml ?
Example code:
staging:
adapter: mysql
encoding: utf8
database: (database)
pool
I wasted a whole afternoon because of a socket specified in my database.yml - the database specifications for the test environment simply weren't parsed. So if you have a problem with your test-database not being accessible although everything seems to be fine with it, try removing the socket specification.