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?

link|improve this question

48% accept rate
1  
To see if it's started, check out the Activity Monitor. – Randolph West Jul 17 '10 at 21:43
ok its not started.... – user27449 Jul 17 '10 at 22:10
feedback

1 Answer

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

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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