in your config/database.yml file, add the line
socket: /var/lib/mysql/mysql.sock
or whatever your mysql.sock location is
$ find / -name "mysql\.sock"
should find it for you. It does a find from the root dir for the file mysql.sock
Good Luck Matt