Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
1  
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

1 Answer 1

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

Reference: http://developer.apple.com/internet/opensource/osdb.html

share|improve this answer

Your Answer

 
discard

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.