Where is my sequel sock?

I was looking for where mysql.sock was since running rake db:bootstrap was complaining with “No such file or directory – /tmp/mysql.sock”. Rails looks for the mysql.sock file under /tmp/mysql.sock by default. Ubuntu using an apt-get install of mysql puts the mysql.sock file at /var/run/mysqld/mysqld.sock.

I always forget where it is. So, I’m writing it down.


You can also grep for it from mysql like so

>>  mysql -? | grep mysqld.sock
socket                            /var/run/mysqld/mysqld.sock
Where is my sequel sock?

One thought on “Where is my sequel sock?

  1. lingjiao says:

    I had the same error when I first started developing rails on the mac. Although the error was due to me forgetting to start up the mysqld daemon =P

    That will throw you the same error as well.

Leave a Reply

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