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.
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.