Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I'd like to run a local copy of mysql, to keep software development environments isolated. However, I can't seem to get the mysqld server to start up.

I've created a database directory with mysql_install_db. I've figured out that I need a socket file, and how to specify the path. However, mysqld keeps reporting that it can't find or open the file.

/path/to/mysqld --datadir=./db/mysql --socket=./tmp/mysqld.sock


130102 9:54:28 [ERROR] Can't start server : Bind on unix socket: No such file or directory
130102 9:54:28 [ERROR] Do you already have another mysqld server running on socket: ./tmp/mysqld.sock ?
share|improve this question

The socket file needs to be specified with a fully qualified path, although the datadir can stay relative.

/path/to/mysqld --datadir=./db/mysql --socket=/Users/jlove/myproject/tmp/mysqld.sock
share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.