ruby rails database apps fail

Question:

My rails app can’t connect to the database. I get the error /tmp/mysql.sock not found

Answer:

Edit your config/database.yml file and add:

socket: /var/lib/mysql/mysql.sock

That will solve the problem.

Leave a Reply

Your email address will not be published. Required fields are marked *