在mac本上删除mysql
2024-08-30 10:55:19
The steps:
First you need to edit the file in: /etc/hostconfig and remove the line
Since this is a system file I advise you to open it with nano in terminal:
- Open Terminal
- sudo nano /etc/hostconfig
- Enter your password if you’re not authed yet.
- Delete the following line: “MYSQLCOM=-YES-”
- CTRL+X (This is the command for closing NANO, Enter the “Y” key to save the file and exit nano).
Second step:
Make sure MySQL is not running.
- Open Terminal and copy and paste and run the following commands:
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm /etc/my.cnf
MySQL is now removed from your MAC.
最新文章
- 简简单单的一个PYTHON多进程实现
- Unity3D Built-in Shader详解一
- 【转】SVN提示:由于目标机器积极拒绝,无法连接 的解决方法
- R语言将数据框转成xts
- c++ 进程权限的提升
- windows下使用VirtualEnv
- 使用WebJar管理css、JavaScript文件
- 关于MDCSwipeToChooseView的应用
- facebook快速登录常见错误:后台设置、域名权限、开发模式、公开、沙盒
- 【C#、csharp】HTTPGET,POST请求
- Scientific Toolworks Understand for linux安装方法
- rsync+inotify实现文件同步更新(配置)
- 内部办公网与IDC机房的GRE隧道配置实践
- Redis之实战篇(与Mybatis整合)
- Java(20)file i/o
- mysql加速导入数据的简单设置
- left join on and 与 left join on where的区别
- 模拟Oracle行迁移和行链接
- XML格式化工具
- 微信小程序,天气预报(百度地图开放平台API)