MySQL: Starting MySQL Server (Unsuccessful)

I have installed MySQL on my Macbook Pro some time ago but it didn’t work today. I got the error:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

I reinstalled MySQL and got the same error.
Eric Dennis on stackoverflow suggested to check if MySQL starts properly by running /usr/local/bin/safe_mysqld.

Unfortunately, I got a -bash: /usr/local/bin/safe_mysqld: No such file or directory. Eric suggested to see if /tmp/mysql.sock existed. It didn’t. His next suggestion was to to:

mysqld stop
touch /tmp/mysql.sock
mysqld_safe restart

I got a permission denied error. I tried with sudo and MySQL didn’t work afterwards either.

The next suggestion was to install the tables manually using:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">