Topic: Testing / Database Connect error.. socket '/tmp/mysql.sock' (2)

Maybe this is just a database issue but its during testing so ill post it here

im running Rails 2.3.9 on Mac with MySQL via MAMP

Ive got my MySQL Databases all setup and the site runs fine in development environment.

Im now trying to setup Testing and every time i run rake db:test:prepare i get this error

rake aborted!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Ive had this issue with MAMP before and solved it by specifying this in database.yml:

socket: /Applications/MAMP/tmp/mysql/mysql.sock

BUT, im already doing this in my test environment..  so im at a loss as to how to solve this issue

If anyone has any advice id love to know it. thanks!

Re: Testing / Database Connect error.. socket '/tmp/mysql.sock' (2)

i think i had to specicy RAILS_ENV=test but it was months ago and i could be wrong.