当前位置:网站首页>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
边栏推荐
- Mysql26 use of performance analysis tools
- Anaconda3 installation CV2
- 【博主推荐】asp.net WebService 后台数据API JSON(附源码)
- Discriminant model: a discriminant model creation framework log linear model
- MySQL35-主从复制
- CSDN问答标签技能树(一) —— 基本框架的构建
- Other new features of mysql18-mysql8
- API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
- 虚拟机Ping通主机,主机Ping不通虚拟机
- Advantages and disadvantages of evaluation methods
猜你喜欢
MySQL19-Linux下MySQL的安装与使用
Postman Interface Association
How to find the number of daffodils with simple and rough methods in C language
Opencv uses freetype to display Chinese
MySQL33-多版本并发控制
Installation and use of MySQL under MySQL 19 Linux
MySQL36-数据库备份与恢复
CSDN question and answer module Title Recommendation task (II) -- effect optimization
Pytoch LSTM implementation process (visual version)
Postman environment variable settings
随机推荐
Swagger、Yapi接口管理服务_SE
MySQL31-MySQL事务日志
【博主推荐】C# Winform定时发送邮箱(附源码)
Emotional classification of 1.6 million comments on LSTM based on pytoch
API learning of OpenGL (2001) gltexgen
Valentine's Day is coming, are you still worried about eating dog food? Teach you to make a confession wall hand in hand. Express your love to the person you want
C language string function summary
Mysql34 other database logs
How to find the number of daffodils with simple and rough methods in C language
MySQL32-锁
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
在jupyter NoteBook使用Pytorch进行MNIST实现
CSDN question and answer tag skill tree (I) -- Construction of basic framework
Postman uses scripts to modify the values of environment variables
Copy constructor template and copy assignment operator template
Mysql27 - Optimisation des index et des requêtes
MySQL transaction log
Adaptive Bezier curve network for real-time end-to-end text recognition
【博主推荐】asp.net WebService 后台数据API JSON(附源码)
[programmers' English growth path] English learning serial one (verb general tense)