0

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?

2
  • 1
    To see if it's started, check out the Activity Monitor.
    – user3463
    Jul 17, 2010 at 21:43
  • ok its not started....
    – user27449
    Jul 17, 2010 at 22:10

1 Answer 1

1

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

You must log in to answer this question.

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