When just installing mysql on OSX through homebrew like so: brew install mysql
and I try to run the command mysql_secure_installation
as brew suggests, it just gives me the following error:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
I tried ALL SOLUTIONS from this thread: Can't connect to local MySQL server through socket homebrew
But alass nothing solved my problem. Any advice to debug?
When I try to check the existance of the socket file:ls -al /tmp/mysql.sock
It says: No such file or directory.
Did Homebrew maybe forget to install something?
mysql.server start
– mesqueebls -al /tmp/mysql.sock
It says: No such file or directory. – mesqueeb[client] socket=/var/lib/mysql/mysql.sock
– user4398985brew install mysql
didn't work properly? Did it forget to install certain files you think? – mesqueeb