need help rubyonrails/mysql problem

Then just add the socket parameter in your database.yml file like this:

socket: /var/run/mysqld/mysqld.sock