当前位置:网站首页>MySQL completely uninstalled (windows, MAC, Linux)
MySQL completely uninstalled (windows, MAC, Linux)
2022-07-06 10:55:00 【hyh123a】
One 、 Purpose
Linux、Windows、Mac Next MySQL Complete uninstall of
- -- Record on 2022 year 05 month 03 Japan
Two 、 step
2.1 Windows Download and unload MySQL
1、 To be in Windows Loading and unloading MySQL, Please make sure to stop the running server first .
2、 After the server stops , You can Windows“ Control panel ” uninstall MySQL. go to “ Procedures and functions ” And select “MySQL”=>“ uninstall ”.
3、 thereafter , To clean up all remaining data , Make sure you can see the hidden folder , Then delete the following folder :
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users<your-username>\AppData\Roaming\MySQL
2.2 Mac Download and unload MySQL
Preliminary uninstall
If you installed through the official installation program MySQL,
You can macOS Of “ System preferences ” Unload it . go to “MySQL” Options and select “Uinstall”.Uninstall completely
From you to Mac uninstall MySQL And delete it completely ( Including all databases ), Do the following :
- 1、 Open terminal window
Use mysqldump Back up the database to a text file !
Stop the database server
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
# edit /etc/hostconfig And delete the lines MYSQLCOM=-YES-
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /private/var/db/receipts/*mysql*
notes : The last three lines are particularly important , Otherwise, even if you think the new version has been completely deleted , You can't install the old version MySQL!
2.3 Linux Download and unload MySQL
Reference link : https://askubuntu.com/questions/640899/how-do-i-uninstall-mysql-completely
sudo -i
service mysql stop
killall -KILL mysql mysqld_safe mysqld
apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld
updatedb
exit
other
If there is a problem , Welcome to leave a message
If help , Welcome to thumb up
Record on 2022 year 05 month 03 Japan
边栏推荐
- 数据库中间件_Mycat总结
- Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
- C language advanced pointer Full Version (array pointer, pointer array discrimination, function pointer)
- Swagger、Yapi接口管理服务_SE
- MySQL34-其他数据库日志
- Invalid global search in idea/pychar, etc. (win10)
- February 13, 2022-3-middle order traversal of binary tree
- Mysql21 - gestion des utilisateurs et des droits
- MySQL21-用户与权限管理
- [reading notes] rewards efficient and privacy preserving federated deep learning
猜你喜欢

Generate PDM file from Navicat export table

MySQL 29 other database tuning strategies

Emotional classification of 1.6 million comments on LSTM based on pytoch

Mysql36 database backup and recovery

Mysql30 transaction Basics
![[recommended by bloggers] C WinForm regularly sends email (with source code)](/img/5d/57f8599a4f02c569c6c3f4bcb8b739.png)
[recommended by bloggers] C WinForm regularly sends email (with source code)

Some problems in the development of unity3d upgraded 2020 VR
![[C language foundation] 04 judgment and circulation](/img/59/4100971f15a1a9bf3527cbe181d868.jpg)
[C language foundation] 04 judgment and circulation

Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution

Pytorch RNN actual combat case_ MNIST handwriting font recognition
随机推荐
Mysql27 index optimization and query optimization
Mysql34 other database logs
API learning of OpenGL (2003) gl_ TEXTURE_ WRAP_ S GL_ TEXTURE_ WRAP_ T
API learning of OpenGL (2001) gltexgen
Record the first JDBC
How to find the number of daffodils with simple and rough methods in C language
Some problems in the development of unity3d upgraded 2020 VR
CSDN博文摘要(一) —— 一个简单的初版实现
Navicat 导出表生成PDM文件
C语言标准的发展
虚拟机Ping通主机,主机Ping不通虚拟机
Just remember Balabala
MySQL19-Linux下MySQL的安装与使用
MySQL27-索引優化與查詢優化
MySQL 20 MySQL data directory
MySQL28-数据库的设计规范
[recommended by bloggers] asp Net WebService background data API JSON (with source code)
MySQL25-索引的创建与设计原则
CSDN问答标签技能树(五) —— 云原生技能树
Moteur de stockage mysql23