当前位置:网站首页>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
边栏推荐
- Mysql21 - gestion des utilisateurs et des droits
- How to change php INI file supports PDO abstraction layer
- Mysql23 storage engine
- CSDN博文摘要(一) —— 一个简单的初版实现
- Isn't there anyone who doesn't know how to write mine sweeping games in C language
- Swagger、Yapi接口管理服务_SE
- MySQL21-用戶與權限管理
- Have you mastered the correct posture of golden three silver four job hopping?
- Yum prompt another app is currently holding the yum lock; waiting for it to exit...
- There are three iPhone se 2022 models in the Eurasian Economic Commission database
猜你喜欢
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in
Mysql28 database design specification
Postman uses scripts to modify the values of environment variables
Mysql21 - gestion des utilisateurs et des droits
MySQL26-性能分析工具的使用
Isn't there anyone who doesn't know how to write mine sweeping games in C language
MySQL34-其他数据库日志
Esp8266 at+cipstart= "", "", 8080 error closed ultimate solution
Other new features of mysql18-mysql8
Bytetrack: multi object tracking by associating every detection box paper reading notes ()
随机推荐
MySQL25-索引的创建与设计原则
Have you mastered the correct posture of golden three silver four job hopping?
Case identification based on pytoch pulmonary infection (using RESNET network structure)
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution
MySQL18-MySQL8其它新特性
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
Use of dataset of pytorch
Use JUnit unit test & transaction usage
API learning of OpenGL (2001) gltexgen
Solve the problem that XML, YML and properties file configurations cannot be scanned
Some problems in the development of unity3d upgraded 2020 VR
保姆级手把手教你用C语言写三子棋
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
Mysql36 database backup and recovery
MySQL30-事务基础知识
MySQL transaction log
MySQL 29 other database tuning strategies
Mysql23 storage engine
MySQL flush operation
[unity] simulate jelly effect (with collision) -- tutorial on using jellysprites plug-in