reinstall mysql macos code example
Example 1: brew reinstall mysql
# To uninstall
brew uninstall mysql@5.7
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
# To Reinstall
brew install mysql@5.7
brew link --force [email protected]
brew services start mysql@5.7
Example 2: delete mysql from mac
$ brew uninstall mysql
Uninstalling /usr/local/Cellar/mysql/5.6.19...