On trying to start mysql.server start
./usr/local/bin/mysql.server: line 264: kill: (12262) - No such process ERROR!
On trying to connect mysql -uroot
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
- Stop MySQL / MariaDB.
- Go to
/usr/local/var/mysql
- Delete
ib_logfile0
&ib_logfile1
files. - Try to start now, It should work 😎
After updating to macOS Sonoma 14 the connection with
127.0.0.1
was not working anymore (localhost
was working correct).I added this:
at the bottom of
/opt/homebrew/etc/my.cnf
and ran the commandbrew services restart mariadb
to fix it.