How to uninstall MySQL 5.7.19 under Linux

How to uninstall MySQL 5.7.19 under Linux

1. Find out whether MySQL was installed before

Command: rpm -qa|grep -i mysql

You can see two packages of mysql:

mysql-*..*.RHEL**
mysqlclient*.RHEL**

2. Delete mysql

Delete command: rpm -e --nodeps package name

( rpm -ev mysql-*.RHEL* )

3. Delete the development header files and libraries of the old version of MySQL

Order:

rm -fr /usr/lib/mysql
rm -fr /usr/include/mysql

Note: After uninstallation, the data in /var/lib/mysql and /etc/my.cnf will not be deleted. If you are sure they are useless, delete them manually.

rm -f /etc/my.cnf
  rm -fr /var/lib/mysql

Summarize

The above is the uninstall method of Mysql5.7.19 under Linux introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Detailed steps for completely uninstalling and reinstalling MySQL under Windows 10
  • MySQL uninstall and install graphic tutorial under Linux
  • Installation and uninstallation of MySQL 5.7 decompressed version and summary of common problems
  • Detailed explanation of installing and completely uninstalling mysql with apt-get under Ubuntu
  • Several methods to completely uninstall MySQL under CentOS
  • How to completely uninstall MySQL, Apache2 and Php in Ubuntu
  • Detailed tutorial on MySql installation and uninstallation
  • MySQL 5.7 decompressed version installation, uninstallation and garbled code problem graphic solution
  • How to completely delete and uninstall MySQL in Windows 10
  • Diagram of the process from uninstallation to installation of MySQL 5.7.18 yum under Linux
  • Uninstalling MySQL database under Linux
  • Complete steps for uninstalling MySQL database
  • Analysis of the reasons why the mysql-libs* crontab command that comes with Linux 6.7 cannot be used after uninstallation
  • Ubuntu 16.04.1 MySQL installation and uninstallation graphic tutorial
  • Detailed explanation of completely uninstalling mysql under Linux
  • How to install and uninstall MySQL service under Windows (MySQL 5.6 zip decompression version installation tutorial)
  • How to install and uninstall MySQL 5.7.11 on Mac
  • Detailed steps for completely uninstalling MySQL 5.7

<<:  Detailed explanation of Linux mpstat command usage

>>:  How to display texture at the position of swipe in CocosCreator

Recommend

【HTML element】How to embed images

The img element allows us to embed images in HTML...

A complete record of a Mysql deadlock troubleshooting process

Preface The database deadlocks I encountered befo...

Let's talk about my understanding and application of React Context

Table of contents Preface First look at React Con...

Specific usage instructions for mysql-joins

Table of contents Join syntax: 1. InnerJOIN: (Inn...

A brief discussion on two current limiting methods in Nginx

The load is generally estimated during system des...

Docker compose custom network to achieve fixed container IP address

Due to the default bridge network, the IP address...

Use momentJs to make a countdown component (example code)

Today I'd like to introduce a countdown made ...

Detailed explanation of the TARGET attribute of the HTML hyperlink tag A

The hyperlink <a> tag represents a link poin...

How to use docker to deploy front-end applications

Docker is becoming more and more popular. It can ...

Two types of tab applications in web design

Nowadays, tabs are widely used in web design, but...