当前位置:网站首页>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
边栏推荐
- 5G-based Warehousing Informatization Solution 2022
- ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
- ddl and dml in sql (the difference between sql and access)
- Why did I switch from developer to testing, 3 years software testing engineer, tell you the secret of this
- A Small Case About Containers
- 异常情况处置方案
- The use of ccs software (app software that makes money reliably)
- MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
- 那些破釜沉舟入局Web3.0的互联网精英都怎么样了?
- Normal and escaped strings for postgresql
猜你喜欢

Flask Framework - Flask-Mail Mail

瑞吉外卖项目实战Day02

5. DOM

JUC common thread pool source learning 02 ( ThreadPoolExecutor thread pool )

CS内网横向移动 模拟渗透实操 超详细

Mac 中 MySQL 的安装与卸载

English语法_不定代词 - both / either / neither

A Small Case About Containers

What is the relationship between the construction of smart cities and 5G technology in the new era

国内数字藏品的乱象与未来
随机推荐
如何写一份高可读性的软件工程设计文档
Web消息推送之SSE
桌面软件开发框架大赏
v-model组件化编程应用
Some thoughts on String
MySQL客户端工具的使用与MySQL SQL语句
MySql报错:SqlError(Unable to execute query“, “Can‘t create/write to file OS errno 2 - No such file...
Still saying software testing doesn't have a midlife crisis?9 years of test engineers were eliminated
Hello,World
5G-based Warehousing Informatization Solution 2022
MongoDB starts an error Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
Smart Contract Security - Private Data Access
Before quitting, make yourself a roll king
The evolution of content products has three axes: traffic, technology, and product form
ESP32 反复重启问题 Arduino屏蔽断电探测器
What is defect analysis?An article takes you to understand the necessary skills of test engineers
postgresql的普通字符串和转义字符串
Container sorting case
JSON common annotations
Flink optimization