当前位置:网站首页>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
边栏推荐
- pytorch与keras的相互转换(代码以LeNet-5为例)
- Flask Framework - Flask-Mail Mail
- 基于FPGA的DDS任意波形输出
- 我们公司用了 6 年的网关服务,动态路由、鉴权、限流等都有,稳的一批!
- What is the relationship between the construction of smart cities and 5G technology in the new era
- A simple change for problem, knapsack problem sets of shell
- Huawei's 7-year-experienced software testing director, gives some advice to all friends who want to change careers to learn software testing
- Interface automation framework, lm-easytest beta version released, use it quickly~
- Metaverse Post Office AI space-themed series of digital collections will be launched at 10:00 on July 30th "Yuanyou Digital Collection"
- Get the Google Advertising ID as a unique identifier
猜你喜欢

Use of SLF4J

How to use Databricks for data analysis on TiDB Cloud | TiDB Cloud User Guide

canal scrape data

Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates

00后测试员摸爬滚打近一年,为是否要转行或去学软件测试的学弟们总结出了以下走心建议

时序数据库在船舶风险管理领域的应用

使用 protobuf 进行数据序列化

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

三电系统集成技术杂谈

Understand Chisel language. 28. Chisel advanced finite state machine (2) - Mealy state machine and comparison with Moore state machine
随机推荐
Flask Framework - Flask-Mail Mail
一文读懂网络效应对Web3的重要意义
ECCV 2022 | Towards Data Efficient Transformer Object Detectors
ROS 导航
MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
This editor actually claims to be as fast as lightning!
元宇宙邮局AI航天主题系列数字藏品 将于7月30日10:00点上线“元邮数藏”
Go to Tencent for an interview and let people turn left directly: I don't know idempotency!
Web消息推送之SSE
Six-faced ant financial clothing, resisting the bombardment of the interviewer, came to interview for review
Recommended open source tools: MegPeak, a high-performance computing tool
The truth of the industry: I will only test those that have no future, and I panic...
Eight years of testing experience, why was the leader criticized: the test documents you wrote are not as good as those of fresh graduates
Some thoughts on String
Cookie simulation login "recommended collection"
DDS Arbitrary Waveform Output Based on FPGA
那些破釜沉舟入局Web3.0的互联网精英都怎么样了?
JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )
Androd 跳转到google应用市场
[Enlightenment by Opportunity-53]: "Sushu"-3- Self-cultivation and Self-cultivation