当前位置:网站首页>Completely delete MySQL in Linux system
Completely delete MySQL in Linux system
2022-07-28 01:58:00 【Guihai】
This is what I installed before mysql5.7, Then I want to change it to mysql8.0 There is this one , Almost follow the operation. It should be able to delete it completely .

One 、 You have to check whether you have installed mysql( my linux yes centos7 Of )
rpm -qa | grep -i mysql
Two 、 close mysql Related services
1、 First check your mysql Whether the service is running ( my mysqld It's because I use rpm Command installed )
systemctl status mysqld
2、 close mysql service
systemctl stop mysqld
3、 You can confirm again whether to shut down the service
systemctl status mysqld
3、 ... and 、 Start unloading mysql
1、 Find out mysql Corresponding directory
find / -name mysql
2、 Delete corresponding mysql Catalog
Delete according to the command you found above

One small point : After uninstalling /etc/my.cnf Does not delete , Need to delete manually
rm -rf /etc/my.cnf
Four 、 Uninstall and delete MySQL Installed component services
rpm -qa|grep -i mysqlDelete what you found mysql Component service

5、 ... and 、 After uninstallation, check whether the uninstallation is successful
rpm -qa | grep -i mysql perhaps
systemctl start mysql
If nothing, congratulations on uninstalling .

边栏推荐
- 一些事情的思考
- 面试官:你确定Redis是单线程的进程吗?
- HCIP第十二天笔记
- 数商云供应链集采管理系统解决方案:集采系统管理模式,数字化管控企业物资
- Leetcode's 83rd biweekly match
- Gbase 8C backup control function (IV)
- VPP之DPDK插件
- GBase 8c 恢复控制函数
- Enterprise operation and maintenance practice - using aliyun container image service to pull and build images of overseas GCR and quay warehouses
- js 哪些情况不能用 JSON.parse 、JSON.stringify深拷贝及一个更好的深拷贝方法
猜你喜欢
随机推荐
GBase 8c 备份控制函数(一)
Linux系统彻底删除Mysql
Gbase 8C transaction ID and snapshot (VI)
Game 302 of leetcode
Discussion on PHP using some functions bypass WAF
写给去不图床用户的一封信
The petrochemical industry is facing the tide of rising prices, and the digital dealer distribution system platform enables dealers and stores
Simplicity for beauty - programming ideas
忘记root密码
Flink 在 讯飞 AI 营销业务的实时数据分析实践
自定义类型:结构体,枚举,联合
BGP federal experiment
Gbase 8C transaction ID and snapshot (V)
C language · pointer
Gbase 8C transaction ID and snapshot (I)
IIC read / write eefprom
26. Abstraction and template ideas
Open source flight control (Px4, ardupilot)
GBase 8c 快照同步函数
N32L43x Flash读\写\擦除操作总结










