当前位置:网站首页>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
边栏推荐
- A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
- Just remember Balabala
- Mysql21 - gestion des utilisateurs et des droits
- Mysql27 index optimization and query optimization
- MySQL25-索引的创建与设计原则
- What is the difference between TCP and UDP?
- API learning of OpenGL (2002) smooth flat of glsl
- API learning of OpenGL (2001) gltexgen
- A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
- Mysql28 database design specification
猜你喜欢
Navicat 導出錶生成PDM文件
35 is not a stumbling block in the career of programmers
La table d'exportation Navicat génère un fichier PDM
MySQL27-索引优化与查询优化
How to find the number of daffodils with simple and rough methods in C language
MySQL 20 MySQL data directory
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
Record the first JDBC
Why is MySQL still slow to query when indexing is used?
Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
随机推荐
MySQL31-MySQL事务日志
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
第一篇博客
Kubernetes - problems and Solutions
API learning of OpenGL (2002) smooth flat of glsl
Nanny hand-in-hand teaches you to write Gobang in C language
MySQL19-Linux下MySQL的安装与使用
CSDN Q & a tag skill tree (V) -- cloud native skill tree
Postman Interface Association
Generate PDM file from Navicat export table
MySQL27-索引优化与查询优化
导入 SQL 时出现 Invalid default value for ‘create_time‘ 报错解决方法
Moteur de stockage mysql23
Kubesphere - deploy the actual combat with the deployment file (3)
Some problems in the development of unity3d upgraded 2020 VR
[untitled]
Mysql32 lock
CSDN blog summary (I) -- a simple first edition implementation
Mysql22 logical architecture
Unicode decodeerror: 'UTF-8' codec can't decode byte 0xd0 in position 0 successfully resolved