当前位置:网站首页>Installing and Uninstalling MySQL on Mac
Installing and Uninstalling MySQL on Mac
2022-07-30 15:13:00 【web18484626332】
MySQL installation and uninstallation
Uninstalling MySQL
On Mac, you can check the status of MySQL in System Preferences, its path is under /usr/local by default, you can delete clean MySQL by following the steps below
Close MySQL, click MySQL in
System Preferences, then clickStop MySQL Server

Open the terminal, switch to the usr directory,
open usrUninstall MySQL related files in the
/localdirectory in sequencesudo 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.*View
System Preferences, MySQL has been removed
MySQL Installation
- Enter MySQL Community Edition, download the MySQL installation package for the corresponding system and version, and be careful not to download the compressed package.Archives on the right side of GA can download older versions of MySQL

- After downloading the installation package, click next all the way, the 8.0.28 version can pre-configure the password, but some previous versions have default passwords that need to be remembered and then modified in the terminal



MySQL configuration
- After the installation is complete, you can see the MySQL icon in
System Preferences, after clicking it, you can see the MySQL configuration file storage location inConfiguration

- Configure system environment variables At this point, directly enter
mysqlin the terminal, andcommand not found
will appear (1) FirstTerminalcd /usr/local/mysql/binCheck mysql installation
(2) Add a path
open ~/.bash_profile in the terminal- Add the statement
PATH=$PATH:/usr/local/mysql/binto the file, save it source ~/.bash_profile
- Log in to
MySQL, entermysql -uroot -pin the terminal, and then enter the password to log in
边栏推荐
- MaxWell抓取数据
- Ts是什么?
- Get the Google Advertising ID as a unique identifier
- 71-page comprehensive overall solution for global tourism 2021 ppt
- 71页全域旅游综合整体解决方案2021 ppt
- Flink real-time data warehouse completed
- CVE-2022-33891 Apache Spark 命令注入复现
- A Small Case About Containers
- Use of SLF4J
- Teach you how to write an eye-catching software testing resume, if you don't receive an interview invitation, I will lose
猜你喜欢

MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)

Why do software testing have to learn automation?Talk about the value of automated testing in my eyes

那些破釜沉舟入局Web3.0的互联网精英都怎么样了?

学习 MySQL 需要知道的 28 个小技巧

桌面软件开发框架大赏

吃透Chisel语言.29.Chisel进阶之通信状态机(一)——通信状态机:以闪光灯为例

瑞吉外卖项目实战Day02

Baijiahao cancels the function of posting documents on the interface: the weight of the plug-in chain is blocked

国内数字藏品的乱象与未来

00 testers of seasoning after nearly a year, whether to change careers or to learn the software testing students summarized the following heart advice
随机推荐
开始学习C语言了
容器排序案例
SLF4J的使用
有关收集箱的改进建议
[机缘参悟-53]:《素书》-3-修身养志[求人之志章第三]
The highest level of wiring in the computer room, the beauty is suffocating
国内数字藏品的乱象与未来
4位资深专家多年大厂经验分享出Flink技术内幕架构设计与实现原理
Web消息推送之SSE
Flask框架——Flask-SQLite数据库
Kubernetes应用管理深度剖析
MPSK抗噪声性能对比(即MPSK标准误码率曲线)
postgresql的普通字符串和转义字符串
Remember an experience of interviewing an outsourcing company, should you go?
PyQt5快速开发与实战 9.1 使用PyInstaller打包项目生成exe文件
Flink optimization
如何写一份高可读性的软件工程设计文档
localhost与127.0.0.1
MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
LeetCode_98_验证二叉搜索树