当前位置:网站首页>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
边栏推荐
- MySQL35-主从复制
- MySQL27-索引優化與查詢優化
- Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
- 该不会还有人不懂用C语言写扫雷游戏吧
- 解决:log4j:WARN Please initialize the log4j system properly.
- MySQL 29 other database tuning strategies
- MySQL28-数据库的设计规范
- Use JUnit unit test & transaction usage
- [BMZCTF-pwn] 11-pwn111111
- February 13, 2022-3-middle order traversal of binary tree
猜你喜欢
CSDN markdown editor
Postman environment variable settings
API learning of OpenGL (2002) smooth flat of glsl
Mysql34 other database logs
Navicat 导出表生成PDM文件
【C语言】深度剖析数据存储的底层原理
Mysql33 multi version concurrency control
Generate PDM file from Navicat export table
Other new features of mysql18-mysql8
Mysql35 master slave replication
随机推荐
【博主推荐】asp.net WebService 后台数据API JSON(附源码)
MySQL31-MySQL事务日志
MySQL23-存儲引擎
CSDN question and answer tag skill tree (I) -- Construction of basic framework
MySQL25-索引的创建与设计原则
MySQL flush operation
MySQL21-用戶與權限管理
Are you monitored by the company for sending resumes and logging in to job search websites? Deeply convinced that the product of "behavior awareness system ba" has not been retrieved on the official w
CSDN博文摘要(一) —— 一个简单的初版实现
Yum prompt another app is currently holding the yum lock; waiting for it to exit...
CSDN question and answer module Title Recommendation task (II) -- effect optimization
CSDN问答标签技能树(二) —— 效果优化
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
Global and Chinese market of wafer processing robots 2022-2028: Research Report on technology, participants, trends, market size and share
Anaconda3 安装cv2
[Li Kou 387] the first unique character in the string
February 13, 2022 - Maximum subarray and
Moteur de stockage mysql23
Mysql21 - gestion des utilisateurs et des droits
MySQL30-事务基础知识