Super User is a question and answer site for computer enthusiasts and power users. 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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .