Encountering “No such file or directory - /tmp/mysql.sock” in Ruby on Rails

April 17th, 2008 royuen Posted in Rails No Comments »

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
  …

AddThis Social Bookmark Button