Install and manage MySQL on Mac using Homebrew
socket error
brew uninstall mysql
Delete the folders/files that were not removed
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
Reinstall mysql and link it
brew install mysql
brew link --force mysql
Enable and start the service
brew services start mysql
**DO NOT USE!!!! It is soooo broken and crappy. use DMG install https://vladster.net/en/instructions/install-mysql-mac/ **
Full tutorial: https://codelink.pro/blog/install-and-manage-mysql-on-mac-using-homebrew
Check if you have it:
brew info mysql
Install:
brew install mysql
Start:
brew services start mysql
To add password:
mysql_secure_installation
Check it's running
brew services list
Check version
mysql -V
Install DMG for mysql server for mac
Check if running in pref plane. Try starting it, if it doesn't work, reboot. Click on intialise database. Enter password.