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

In-depth understanding of MySQL self-connection and join association

1. MySQL self-connection MySQL sometimes needs to...

WeChat applet example of using functions directly in {{ }}

Preface In WeChat applet development (native wxml...

Linux installation MongoDB startup and common problem solving

MongoDB installation process and problem records ...

CSS uses calc() to obtain the current visible screen height

First, let's take a look at the relative leng...

How to solve the error "ERROR 1045 (28000)" when logging in to MySQL

Today, I logged into the server and prepared to m...

Detailed explanation of MySQL database transaction isolation levels

Database transaction isolation level There are 4 ...

How to upload and download files between Linux server and Windows system

Background: Linux server file upload and download...

Front-end state management (Part 1)

Table of contents 1. What is front-end state mana...

How to shut down/restart/start nginx

closure service nginx stop systemctl stop nginx s...

JavaScript css3 to implement simple video barrage function

This article attempts to write a demo to simulate...