Mysql.sock

Getting this error:

Errno::ENOENT in StateController#list

No such file or directory - /tmp/mysql.sock

On my server I found mysql.sock in /var/lib/mysql/mysql.sock
adding socket: /var/lib… etc didn’t help
My next attempt is to create a symbolic link however,
is the tmp directory the one in the Rails tmp directory ?

Stuart

Stuart Fellowes wrote:

Getting this error:

Errno::ENOENT in StateController#list

No such file or directory - /tmp/mysql.sock

On my server I found mysql.sock in /var/lib/mysql/mysql.sock
adding socket: /var/lib… etc didn’t help
My next attempt is to create a symbolic link however,
is the tmp directory the one in the Rails tmp directory ?

Stuart


http://en.wikipedia.org/wiki/Dark_

I think the line should be:

sock: /var/lib/mysql/mysql.sock

not

socket: /var/lib/mysql/mysql.sock
^^

And, no the tmp directory where rails is looking by default is the one
off the root (/) folder, not the one in your rails app.

c.

PS does everyone else get [Your post seems to contain Spam: “amb ien”]
(space added) when they reply to your posts? :slight_smile: :slight_smile: