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

JavaScript operation elements teach you how to change the page content style

Table of contents 1. Operation elements 1.1. Chan...

Specific use of nginx keepalive

The default request header of the http1.1 protoco...

Detailed tutorial on installing Python 3.8.1 on Linux

This example takes the installation of Python 3.8...

js to achieve 3D carousel effect

This article shares the specific code for impleme...

Summary of considerations for writing web front-end code

1. It is best to add a sentence like this before t...

Browser compatibility summary of common CSS properties (recommended)

Why do we need to summarize the browser compatibi...

Detailed installation and use tutorial of mysql 8.0.15 under windows

This article shares with you the detailed install...

Summary of several common methods of JavaScript arrays

Table of contents 1. Introduction 2. filter() 3. ...

4 ways to optimize MySQL queries for millions of data

Table of contents 1. The reason why the limit is ...

Why is IE6 used by the most people?

First and foremost, I am a web designer. To be mor...

Installation and configuration method of Zabbix Agent on Linux platform

Here is a brief summary of the installation and c...

Example code of vue + element ui to realize player function

The display without the effect picture is just em...

Solve the error problem caused by modifying mysql data_dir

Today, I set up a newly purchased Alibaba Cloud E...

Web Design Teaching or Learning Program

Section Course content Hours 1 Web Design Overvie...