Rails tip: getting this error when you try to do a rake migrate on a shared server, even though your app can access the database?

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Try specifying 127.0.0.1 instead of localhost in your database.yml.

(0 comments)

Leave a Reply