当前位置:网站首页>Mac 中 MySQL 的安装与卸载
Mac 中 MySQL 的安装与卸载
2022-07-30 14:26:00 【web18484626332】
MySQL 的安装与卸载
MySQL 的卸载
在 Mac 中可以在系统偏好设置 中查看 MySQL 的状态,其路径默认在/usr/local下,可以按照以下步骤删除干净 MySQL
关闭 MySQL,在
系统偏好设置中点击 MySQL,然后点击Stop MySQL Server

打开终端,切换到 usr 目录下,
open usr在
/local目录中依次卸载 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.*查看
系统偏好设置,此时 MySQL 已被删除
MySQL 的安装
- 进入 MySQL 社区版,下载对应系统、版本的MySQL安装包,注意不要下载压缩包,在 GA 的右侧 Archives 可以下载旧版本的 MySQL

- 下载完安装包后,一路单击 next, 8.0.28 版本可以预先配置密码,但之前有些版本有默认密码需要先记住再在终端修改



MySQL 的配置
- 安装完成后在
系统偏好设置可以看见 MySQL 图标,点击后在Configuration能看见 MySQL 配置文件存储位置

- 配置系统的环境变量 此时直接在终端输入
mysql,会出现command not found
(1) 先在终端cd /usr/local/mysql/bin查看 mysql 安装情况
(2) 添加路径
- 在终端中
open ~/.bash_profile - 文件中添加语句
PATH=$PATH:/usr/local/mysql/bin,保存 source ~/.bash_profile
- 登陆
MySQL,在终端输入mysql -uroot -p,之后输入密码即可登录
边栏推荐
- MaxWell scraped data
- 桌面软件开发框架大赏
- 手把手教你写让人眼前一亮的软件测试简历,收不到面试邀请算我输
- 双碳目标下:农田温室气体排放模拟
- Hello, World
- 【回归预测-CNN预测】基于卷积神经网络CNN实现数据回归预测附matlab代码
- 打破原则引入SQL,MongoDB到底想要干啥?
- ECCV 2022 | 通往数据高效的Transformer目标检测器
- What is the relationship between the construction of smart cities and 5G technology in the new era
- 71页全域旅游综合整体解决方案2021 ppt
猜你喜欢

基于5G的仓储信息化解决方案2022

容器排序案例

5. DOM

3年软件测试经验面试要求月薪22K,明显感觉他背了很多面试题...

超T动力 盈运天下——中国重汽黄河/豪沃WP14T产品首发荣耀上市!

内容产品进化三板斧:流量、技术、产品形态

我为何从开发人员转做测试,3年软件测试工程师,带你聊聊这其中的秘辛

Flask Framework - Sijax

Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine

LeetCode_98_验证二叉搜索树
随机推荐
网站添加能换装可互动的live 2d看板娘
pytorch与keras的相互转换(代码以LeNet-5为例)
这个编辑器居然号称快如闪电!
什么是缺陷分析?一篇文章带你了解,测试工程师必备技能
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
Some thoughts on String
MPSK抗噪声性能对比(即MPSK标准误码率曲线)
canal抓取数据
百家号取消接口发文功能:插外链获权重被堵死
Interface automation framework, lm-easytest beta version released, use it quickly~
深入浅出零钱兑换问题——背包问题的套壳
LeetCode_数位枚举_困难_233.数字 1 的个数
Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
吃透Chisel语言.28.Chisel进阶之有限状态机(二)——Mealy状态机及与Moore状态机的对比
[Enlightenment by Opportunity-53]: "Sushu"-3- Self-cultivation and Self-cultivation
Application of time series database in the field of ship risk management
JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
Cookie simulation login "recommended collection"
Hello, World