当前位置:网站首页>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
边栏推荐
- CSDN问答标签技能树(二) —— 效果优化
- CSDN Q & a tag skill tree (V) -- cloud native skill tree
- frp内网穿透那些事
- 解决:log4j:WARN Please initialize the log4j system properly.
- SSM integrated notes easy to understand version
- csdn-Markdown编辑器
- API learning of OpenGL (2004) gl_ TEXTURE_ MIN_ FILTER GL_ TEXTURE_ MAG_ FILTER
- Mysql21 - gestion des utilisateurs et des droits
- A trip to Macao - > see the world from a non line city to Macao
- Transactions have four characteristics?
猜你喜欢

Swagger、Yapi接口管理服务_SE

Mysql28 database design specification

【博主推荐】asp.net WebService 后台数据API JSON(附源码)

A trip to Macao - > see the world from a non line city to Macao

Mysql22 logical architecture

Moteur de stockage mysql23
![[recommended by bloggers] asp Net WebService background data API JSON (with source code)](/img/04/c721e6177b578b30cbbf334cb1b6c9.png)
[recommended by bloggers] asp Net WebService background data API JSON (with source code)

【C语言】深度剖析数据存储的底层原理

Mysql33 multi version concurrency control
![[C language foundation] 04 judgment and circulation](/img/59/4100971f15a1a9bf3527cbe181d868.jpg)
[C language foundation] 04 judgment and circulation
随机推荐
IDEA 导入导出 settings 设置文件
February 13, 2022-3-middle order traversal of binary tree
Mysql24 index data structure
Global and Chinese market of thermal mixers 2022-2028: Research Report on technology, participants, trends, market size and share
Record the first JDBC
Baidu Encyclopedia data crawling and content classification and recognition
Mysql27 index optimization and query optimization
CSDN blog summary (I) -- a simple first edition implementation
February 13, 2022 - Maximum subarray and
MySQL18-MySQL8其它新特性
Mysql27 - Optimisation des index et des requêtes
MySQL33-多版本并发控制
[programmers' English growth path] English learning serial one (verb general tense)
Global and Chinese market for intravenous catheter sets and accessories 2022-2028: Research Report on technology, participants, trends, market size and share
C language string function summary
Opencv uses freetype to display Chinese
Anaconda3 installation CV2
Other new features of mysql18-mysql8
MySQL29-数据库其它调优策略
Invalid default value for 'create appears when importing SQL_ Time 'error reporting solution