当前位置:网站首页>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
边栏推荐
- Remember an experience of interviewing an outsourcing company, should you go?
- Normal and escaped strings for postgresql
- 国内数字藏品的乱象与未来
- ROS 导航
- MongoDB启动报错 Process: 29784 ExecStart=/usr/bin/mongod $OPTIONS (code=exited, status=14)
- Flask框架——Flask-SQLite数据库
- CVE-2022-33891 Apache Spark 命令注入复现
- MPSK抗噪声性能对比(即MPSK标准误码率曲线)
- [In-depth study of 4G/5G/6G topic-46]: 5G Link Adaption Link Adaption-2-Common Abbreviations
- The website adds a live 2d kanban girl that can dress up and interact
猜你喜欢
随机推荐
瑞吉外卖项目实战Day02
5. DOM
那些破釜沉舟入局Web3.0的互联网精英都怎么样了?
深入浅出零钱兑换问题——背包问题的套壳
[In-depth study of 4G/5G/6G topic-46]: 5G Link Adaption Link Adaption-2-Common Abbreviations
Flask Framework - Flask-Mail Mail
基于FPGA的DDS任意波形输出
吃透Chisel语言.28.Chisel进阶之有限状态机(二)——Mealy状态机及与Moore状态机的对比
网站添加能换装可互动的live 2d看板娘
English语法_不定代词 - both / either / neither
超T动力 盈运天下——中国重汽黄河/豪沃WP14T产品首发荣耀上市!
Flink real-time data warehouse completed
开始学习C语言了
JSON common annotations
pytorch与keras的相互转换(代码以LeNet-5为例)
从实例来看DAO:权力分散的伟大尝试
Huawei's 7-year-experienced software testing director, gives some advice to all friends who want to change careers to learn software testing
5. DOM
ESP32 Repeated Reboot Issue Arduino Shield Power Outage Detector
ToDesk版本更新,引入RTC传输技术,是否早以替代向日葵远程控制?









