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

Some ways to eliminate duplicate rows in MySQL

SQL statement /* Some methods of eliminating dupl...

Practice of Vue global custom instruction Modal drag

Table of contents background Implementation ideas...

MySQL 5.7.18 installation tutorial and problem summary

MySQL 5.7.18 installation and problem summary. I ...

50 Beautiful FLASH Website Design Examples

Flash enabled designers and developers to deliver...

Solve the matching problem in CSS

Problem Description As we all know, when writing ...

Using js to achieve waterfall effect

This article example shares the specific code of ...

Usage of Node.js http module

Table of contents Preface HTTP HTTP Server File S...

A brief introduction to Linux environment variable files

In the Linux system, environment variables can be...

MySQL series 15 MySQL common configuration and performance stress test

1. Common MySQL configuration All the following c...

Web front-end development experience summary

XML files should be encoded in utf-8 as much as p...

JavaScript imitates Jingdong magnifying glass effect

This article shares the specific code for JavaScr...

A complete list of common Linux system commands for beginners

Learning Linux commands is the biggest obstacle f...

Install three or more tomcats under Linux system (detailed steps)

If you want to install multiple tomcats, you must...

MySQL Best Practices: Basic Types of Partition Tables

Overview of MySQL Partitioned Tables As MySQL bec...