First of all let me start by saying that I have read and tried all approaches that I found on the web and stack overflow.
What I get when I try to run
mysql.server start
or
sudo /usr/local/mysql/support-files/mysql.server start
is
ERROR! The server quit without updating PID file (/usr/local/var/mysql/hostname.local.pid).
What I get when I try to run:
mysql
is
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I also tried:
sudo mysqld_safe &
- Clicking the mysql start button on system preferences.
- Restart the computer
- Reinstall mysql
- Install older version of mysql
killall
and then try to run mysqlsudo chmod -R 777 /usr/local/mysql/
- `sudo chown -R mysql /var/lib/mysql/
rm /usr/local/var/mysql/localhost.err
sudo /usr/local/mysql/bin/mysqld_safe start
- tried everything here: How to auto-load MySQL on startup on OS X Yosemite / El Capitan
I am out of ideas, I don't know what to do.