Mac Brew Uninstall MySql
如果你brew install mysql 之后出现问题要卸载:
brew remove mysql brew cleanup launchctl unload -w ~/Library/LaunchAgents/com.mysql.mysqld.plist rm ~/Library/LaunchAgents/com.mysql.mysqld.plist sudo rm -rf /usr/local/var/mysql |
然后重新开始
- installed mysql with
brew install mysql
-
ran the commands brew suggested:
unset TMPDIR mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
-
Start mysql with
mysql.server
command, to be able to log on it -
Used the alternate security script:
/usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation
-
Followed the
launchctl
section from the brew package script output - Boom.
【推荐】2025 HarmonyOS 鸿蒙创新赛正式启动,百万大奖等你挑战
【推荐】博客园的心动:当一群程序员决定开源共建一个真诚相亲平台
【推荐】开源 Linux 服务器运维管理面板 1Panel V2 版本正式发布
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步