brew reinstall mysql
# To uninstall
brew uninstall [email protected]
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
# To Reinstall
brew install [email protected]
brew link --force [email protected]
brew services start [email protected]
brew reinstall mysql
# To uninstall
brew uninstall [email protected]
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
# To Reinstall
brew install [email protected]
brew link --force [email protected]
brew services start [email protected]
install mysql on mac
Using Homebrew:
brew install mysql
brew tap homebrew/services
brew services start mysql
mysqladmin -u root password 'secretpaSSw0rd'
Using Docker:
docker pull mysql/mysql-server
docker run --name=mysql -d mysql/mysql-server
delete mysql from mac
$ brew uninstall mysql
Uninstalling /usr/local/Cellar/mysql/5.6.19...
mac install mysql
brew install mysql
sudo chown -R _mysql:mysql /usr/local/var/mysql
sudo mysql.server start
sudo mysql
// set password for root user, or change root to another user
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
exit
mysql -u root -p
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us