当前位置:网站首页>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 .

边栏推荐
猜你喜欢
随机推荐
Gbase 8C backup control function (IV)
Gbase 8C backup control function (II)
Interview question 01.07. rotation matrix
在生产型企业中,MES系统有哪些重要应用
Favorite songs
Prediction of charitable donation behavior by EEG multivariate model analysis
Leveraging the blue ocean of household appliances consumption with "digital channels", the dealer online system enables enterprises to further their business
How tormenting are weekly and monthly reports? Universal report template recommended collection! (template attached)
Open source flight control (Px4, ardupilot)
Collection / container
HCIP第十五天
嵌入式经典通信协议
小散量化炒股记|量化系统中数据是源头,教你搭建一款普适的数据源框架
Flink's real-time data analysis practice in iFLYTEK AI marketing business
暴雪《暗黑破坏神 4》PS5 / PS4 测试版添加到 PlayStation 数据库
Gbase 8C backup control function (III)
Load balancing SLB
Thinking about some things
FreeRTOS内核小结
Simplicity for beauty - programming ideas










