Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

here is the log

131229 14:55:27 [ERROR] Can't start server : Bind on unix socket: Permission denied
131229 14:55:27 [ERROR] Do you already have another mysqld server running on socket: /tmp/mysql.sock ?

and what i had down is this in my.cnf:

socket =/tmp/mysql.sock

what to put the sock file in here and tmp

drwxrwxrwt.  15 root root  4096 Dec 29 14:55 tmp

But I can start it anymore, if I remove that /tmp/mysql.sock. every think is ok. why? why tmp got a 777 permission but it still got this error? thinks in advance.

share|improve this question

migrated from Dec 29 '13 at 11:33

This question came from our site for professional and enthusiast programmers.

Looks like 4096 port is already taken. Hav you tried another ones ? – Num6 Dec 29 '13 at 7:27
@HAL9000 If it were already taken the error would be "Socket already in use" – Barmar Dec 29 '13 at 7:36
@Barmar yes, but second error log message means, that socket is busy, no? – Num6 Dec 29 '13 at 7:38
The second error message is just generic, it prints it regardless of the error it got trying to open the socket. – Barmar Dec 29 '13 at 7:40
What is the ownership and permissions on /tmp/mysql.sock? It needs to be owned by the userid that runs mysqld. – Barmar Dec 29 '13 at 7:41

When everything you can think of to check seems right, you have to think of the things you can't think of. :)

Like possibly "apparmor."

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.