How to completely delete the MySQL 8.0 service under Linux

How to completely delete the MySQL 8.0 service under Linux

Before reading this article, it is best to have a certain knowledge of Linux commands, specifically to clear the Mysql installed using yum in the centos7.3 environment

Please shut down the Mysql service before uninstalling

service mysql stop

Use the rpm command to view the installed mysql

rpm -qa|grep mysql

Query MySQL

Start uninstalling the Mysql service

Using yum to install requires clearing services first

yum remove mysql mysql-server mysql-libs mysql-server 

Uninstall MySQL

Query again

rpm -qa|grep mysql

Query

Use rpm -ev + corresponding file name to delete the corresponding results of Mysql above

Delete again

rpm -ev mysql-community-common-8.0.17-1.el7.x86_64
rpm -ev mysql80-community-release-el7-3.noarch

Use find / -name mysql to find MySQL-related directory files and delete them accordingly


Query again

find / -name mysqlrm -rf + corresponding directory or file name found

Check if there are any missing files (if there are any, use the corresponding deletion command to delete them)


Find missing

Use ls to list the directory to see if the installation source exists (if yes, delete the corresponding file)


Removing dependencies

Mysql in this system has been completely cleared

Extension: Both are deletion, what is the difference between rpm -ev and rm -rf?
rpm is a software package manager. It deletes a software package, targeting software; rm -rf deletes a directory or file.

Summarize

The above is the method I introduced to you to completely delete the MySQL 8.0 service under Linux. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!
If you find this article helpful, please feel free to reprint it and please indicate the source. Thank you!

You may also be interested in:
  • How to check if a table exists in MySQL and then delete it in batches
  • Why the table file size remains unchanged after deleting data in MySQL
  • Three ways to delete a table in MySQL (summary)
  • How to find and delete duplicate records in MySQL
  • Detailed explanation of several practical solutions for quickly deleting large amounts of data (tens of millions) in MySQL
  • Specific method to delete mysql service
  • MySQL's method of dealing with duplicate data (preventing and deleting)
  • MySQL database operations (create, select, delete)
  • How to recover deleted MySQL 8.0.17 root account and password under Windows
  • MySQL table deletion operation implementation (differences between delete, truncate, and drop)
  • Troubleshooting the reasons why MySQL deleted records do not take effect

<<:  How to use nginx to intercept specified URL requests through regular expressions

>>:  Summary of various methods for JavaScript to determine whether it is an array

Recommend

Analysis and solution of abnormal problem of loading jar in tomcat

Description of the phenomenon: The project uses s...

Sample code for implementing history in vuex

I have recently been developing a visual operatio...

Detailed Example of JavaScript Array Methods

Table of contents Introduction Creating an Array ...

Detailed explanation of MySQL user rights management

Table of contents Preface: 1. Introduction to Use...

MySQL stored procedure method example of returning multiple values

This article uses an example to describe how to r...

MySQL data migration using MySQLdump command

The advantages of this solution are simplicity an...

Mysql string interception and obtaining data in the specified string

Preface: I encountered a requirement to extract s...

CSS3 achieves cool sliced ​​image carousel effect

Today we will learn how to use CSS to create a co...

Implementation of HTML sliding floating ball menu effect

CSS Styles html,body{ width: 100%; height: 100%; ...

Detailed explanation of the pitfalls of nginx proxy socket.io service

Table of contents Nginx proxies two socket.io ser...