chooin / blog

1 stars 0 forks source link

MacOS 安装 MySQL #3

Open chooin opened 3 years ago

chooin commented 3 years ago
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 mysql
mysqld --initialize --explicit_defaults_for_timestamp
brew services start mysql