forked from zgulde/codeup-setup-script
-
Notifications
You must be signed in to change notification settings - Fork 10
MySQL troubleshooting
Fernando Mendoza R edited this page Dec 17, 2019
·
1 revision
In case students have a different MySQL version or lost their root password consider the following recommendations:
brew remove mysql
brew cleanup
launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
rm ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
sudo rm -rf /usr/local/var/mysql
brew install [email protected]
brew link [email protected] --force
mysqld --initialize --explicit_defaults_for_timestamp
mysql.server start # no sudo!
mysql.server restart --skip-grant-tables
UPDATE mysql.user
SET authentication_string = PASSWORD('codeup'), password_expired = 'N'
WHERE User = 'root' AND Host = 'localhost';
FLUSH PRIVILEGES;