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 installed using the MySQL-5.1.x.dmg on Mac OS X 10.6, I also installed the package that starts mysql on startup.

When I type:

mysql -u root -p

It says "can't connect to local mysql server through socket '/tmp/mysql.sock' (2)

How can I test if MySQL even started?

How can I start MySQL if its not started?

share|improve this question
To see if it's started, check out the Activity Monitor. – user3463 Jul 17 '10 at 21:43
ok its not started.... – user27449 Jul 17 '10 at 22:10
up vote 1 down vote accepted

Start MySQL

sudo /usr/local/mysql/bin/mysqld_safe --user=mysql &

Add root user:

/usr/local/mysql/bin/mysqladmin -u root password sniggle


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.