Showing posts with label mysql. Show all posts
Showing posts with label mysql. Show all posts

Friday, February 29, 2008

MySQL won't start problem

Was trying to run MySQL, but came across a really annoying problem - it kept saying it couldn't find a "socket" file and thus wouldn't start.

eg.
> mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

Here's how to fix it, just start the MySQL daemon again and all will work:

>
/usr/local/mysql/bin/mysqld_safe &