当前位置:网站首页>安装Mac版Mysql卡在Installation阶段,彻底清理mysql并重装mysql
安装Mac版Mysql卡在Installation阶段,彻底清理mysql并重装mysql
2022-08-02 18:38:00 【石头StoneWang】
背景
之前MacOS曾经安装过mysql,后来某些原因需要重装,发现安装总是卡在Installation阶段,如图
最后只能强退,试了很多次都这样。然后发现其实设置里头是有Mysql的设置的,如图
遂想到是不是卸载不够干净之类的
如何卸载干净Mac版Mysql
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
检查/usr/local/Cellar目录是否有mysql文件,有的话删除。
检查/usr/local/var 里的mysql文件,有的话删除。
检查/tmp 里的mysql.sock、mysql.sock.lock、 my.cnf文件,有的话删除。
err文件以及pid文件都是在/usr/local/var/mysql中,有的话删除。
brew安装的安装包存储在/usr/local/Library/Cache/Homebrew,有的话删除。
执行brew cleanup。
以上有些目录不一定存在要删除的文件。
卸载干净后我试了一下安装,还是发现会卡在Installation阶段,然后又操作了一遍伤处清除操作,这次我重新启动了mac,最后安装成功了
所以清理完毕之后最好重启一下mac!!!
后续
安装好了之后可以禁止mysql开机启动,有需要的时候再手动启动,如图在MacOS的设置中找到mysql,然后剔除勾选
边栏推荐
猜你喜欢

Sentinel vs Hystrix 限流对比,到底怎么选?

麦聪DaaS平台 3.7.0 Release 正式发布:全面支持国际化

What skills are the most practical for college students in communications?

What are the useful real-time network traffic monitoring software
Interviewer: can you talk about optimistic locking and pessimistic locks

leetcode:622. 设计循环队列【循环队列板子】

T5: Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

How to ensure the security of smart factories?

Data Governance: The Evolution of Data Integration and Application Patterns

【C语言刷题】Leetcode169——多数元素
随机推荐
SQL Alias 别名
Openharmony - 基于ArkUI(TS)开发颜色选择器
深入理解IO流(第一篇)
Five keys to a successful Industrial IoT deployment
TSF微服务治理实战系列(一)——治理蓝图
阿里测试8年经验,靠着这份理解,我才得以生存下来
请教下,1.0.0和1.0.2的底层数据库表结构有变化吗?
Jupyter Notebook(Anaconda)——两个环境分别修改默认打开目录(深度学习第一周番外篇)
为何国内年轻人都抢购iPhone,因为它更实惠也更亲民
洛谷P4799 世界冰球锦标赛
arcgis 分子式标注
快手web did可用生成
pydev debugger: warning: trying to add breakpoint to file that does not exist: /tmp/xxx
流量分析三—远程登陆
深度学习-学习笔记(持续更新)
Mobile Banking Experience Test: How to Get the Real User Experience
监控易火星版即将亮相:分布式运维帮助TOP3000大企业跨越管理鸿沟
[论文分享] VideoFlow: A Flow-Based Generative Model for Video
cache2go-源码阅读
MYSQL关键字执行顺序?