Topic: mysql.sock

How come when I create a new application it says this in my database.yml file:

  adapter: mysql
  database: depot_development
  username: root
  socket: /tmp/mysql.sock

I expected it to say localhost

Re: mysql.sock

I think localhost works too, depends if you want to use tcpip to access it or not. I'm not sure what the benefits of one or the other are.

Re: mysql.sock

Well if I put localhost in I can't do a rake db:migrate

Although if I connect via CocoaMySQL using localhost it works.

I refuse to accept that the socket: /tmp/mysql.sock is ok because I have never come across it before when I have created applications.