当前位置:网站首页>MySQL完全卸载(Windows、Mac、Linux)
MySQL完全卸载(Windows、Mac、Linux)
2022-07-06 09:12:00 【hyh123a】
一、目的
Linux、Windows、Mac下MySQL的完全卸载
- -- 记录于 2022年05月03日
二、步骤
2.1 Windows下卸载MySQL
1、要在 Windows 上卸载 MySQL,请确保首先停止正在运行的服务器。
2、服务器停止后,您可以通过 Windows“控制面板”卸载 MySQL。转到“程序和功能”并选择“MySQL”=>“卸载”。
3、此后,要清理所有剩余数据,请确保您可以看到隐藏文件夹,然后删除以下文件夹:
C:\Program Files\MySQL
C:\Program Files (x86)\MySQL
C:\ProgramData\MySQL
C:\Users<your-username>\AppData\Roaming\MySQL
2.2 Mac下卸载MySQL
初步卸载
如果您通过官方安装程序安装了 MySQL,
您可以通过 macOS 的“系统偏好设置”将其卸载。转到“MySQL”选项并选择“Uinstall”。完全卸载
要从 Mac 卸载 MySQL 并完全删除它(包括所有数据库),请执行以下操作:
- 1、打开终端窗口
使用 mysqldump 将数据库备份到文本文件!
停止数据库服务器
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
# 编辑/etc/hostconfig并删除行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*
注:最后三行特别重要,否则即使您认为已经完全删除了新版本,也无法安装旧版本的 MySQL!
2.3 Linux下卸载MySQL
参考链接: 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
其他
如有问题,欢迎留言
如有帮助,欢迎点赞
记录于2022年05月03日
边栏推荐
- MNIST implementation using pytoch in jupyter notebook
- CSDN问答模块标题推荐任务(一) —— 基本框架的搭建
- Navicat 导出表生成PDM文件
- text 文本数据增强方法 data argumentation
- Timestamp with implicit default value is deprecated error in MySQL 5.6
- 保姆级手把手教你用C语言写三子棋
- Baidu Encyclopedia data crawling and content classification and recognition
- Case identification based on pytoch pulmonary infection (using RESNET network structure)
- Pytorch RNN actual combat case_ MNIST handwriting font recognition
- Mysql21 user and permission management
猜你喜欢
MySQL23-存儲引擎
MySQL 29 other database tuning strategies
Navicat 导出表生成PDM文件
35 is not a stumbling block in the career of programmers
Complete web login process through filter
Mysql26 use of performance analysis tools
Emotional classification of 1.6 million comments on LSTM based on pytoch
Csdn-nlp: difficulty level classification of blog posts based on skill tree and weak supervised learning (I)
Isn't there anyone who doesn't know how to write mine sweeping games in C language
Mysql34 other database logs
随机推荐
Mysql34 other database logs
Timestamp with implicit default value is deprecated error in MySQL 5.6
A brief introduction to the microservice technology stack, the introduction and use of Eureka and ribbon
MySQL27-索引優化與查詢優化
Emotional classification of 1.6 million comments on LSTM based on pytoch
CSDN question and answer tag skill tree (I) -- Construction of basic framework
CSDN question and answer module Title Recommendation task (I) -- Construction of basic framework
用于实时端到端文本识别的自适应Bezier曲线网络
Advantages and disadvantages of evaluation methods
Mysql26 use of performance analysis tools
Baidu Encyclopedia data crawling and content classification and recognition
CSDN Q & a tag skill tree (V) -- cloud native skill tree
Windchill configure remote Oracle database connection
In fact, the implementation of current limiting is not complicated
Mysql21 - gestion des utilisateurs et des droits
CSDN问答标签技能树(五) —— 云原生技能树
API learning of OpenGL (2005) gl_ MAX_ TEXTURE_ UNITS GL_ MAX_ TEXTURE_ IMAGE_ UNITS_ ARB
Global and Chinese markets for aprotic solvents 2022-2028: Research Report on technology, participants, trends, market size and share
Use JUnit unit test & transaction usage
@controller,@service,@repository,@component区别