Skip to content

Instantly share code, notes, and snippets.

@helmerdavila
Created August 2, 2018 05:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save helmerdavila/dc6bd33efb3642cd9bcf83171596b5d3 to your computer and use it in GitHub Desktop.
Save helmerdavila/dc6bd33efb3642cd9bcf83171596b5d3 to your computer and use it in GitHub Desktop.
Mysql sock error

First uninstall mysql

brew uninstall mysql@5.7

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@5.7
brew link --force mysql@5.7

Enable and start the service

brew services start mysql@5.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment