Encountering “No such file or directory - /tmp/mysql.sock” in Ruby on Rails
April17
Just a note, when starting up rails as normal but encountering the error message ”No such file or directory - /tmp/mysql.sock”, you can go into config/database.yml and specify socket: path_to_mysql_sock
For example:
development:
adapter: mysql
socket: /Applications/xampp/xamppfiles/var/mysql/mysql.sock
…