Home » MySQL: Remove/Uninstall MySQL from CentOS 7, RedHat, Ubuntu, Debian

MySQL: Remove/Uninstall MySQL from CentOS 7, RedHat, Ubuntu, Debian

by Pring
MySQL: Remove/Uninstall MySQL from CentOS 7, RedHat, Ubuntu, Debian

I. Introduction.

This tutorial will teaches you how to Remove/Uninstall MySQL from CentOS 7, RedHat, Ubuntu, Debian, Fedora 22+. Because sometimes we face issues with MySQL installation on Linux machine.

II. Prerequisites.

1. Login to your system via SSH. You can use PuTTy tool or Poderosa tool,…
2. Login with root user.  If you are logged in as another user, you will need to add sudo before each command.

III. Remove/Uninstall MySQL step by step.

To Remove/Uninstall MySQL. Follow these steps:

On CentOS 7 and RedHat System.
Step 1. Stop MySQL Server.
Step 2. Remove MySQL Package.
Step 3. Remove MySQL Directory.


On Ubuntu and Debian System.
Step 1. Stop MySQL Server.
Step 2. Remove MySQL Package.


On Fedora 22+ System.
Step 1. Stop MySQL Server.
Step 2. Remove MySQL Package.

You can see details as below.

Remove/Uninstall MySQL from CentOS 7 and RedHat System.

Step 1. Stop MySQL Server.

Enter the command below:

sudo /etc/init.d/mysqld stop
or
sudo systemctl stop mysqld

Step 2. Remove MySQL Package.

Then uninstall all the MySQL packages installed on your server. Enter the command below:

sudo yum remove mysql mysql-server

Step 3. Remove MySQL Directory.

Enter the command below:

sudo rm -R /var/lib/mysql

Remove/Uninstall MySQL from Ubuntu and Debian System.

Step 1. Stop MySQL Server.

Enter the command below:

sudo /etc/init.d/mysql stop
or
sudo service mysql stop

Step 2. Remove MySQL Package.

Enter the command below:

sudo apt remove mysql mysql-server

Remove/Uninstall MySQL from Fedora 22+ System.

Step 1. Stop MySQL Server.

Enter the command below:

sudo /etc/init.d/mysql stop
or
sudo service mysql stop

Step 2. Remove MySQL Package.

Enter the command below:

sudo dnf remove mysql mysql-server

IV. Conclusion

In this tutorial, We have shown you how to remove/uninstall MySQL on a Linux server. If you hit a problem or have feedback, leave a comment below.

If you want Install MySQL 8.0 on Linux – CentOS 7


Remove/Uninstall MySQL from CentOS 7, RedHat, Ubuntu, Debian is complete. Wish you success and luck.
Thanks and best regards!
— Pring —

Related Articles

5 comments

Cirque le soir table April 7, 2020 - 2:17 pm

I’ve read some just right stuff here. Certainly worth bookmarking for revisiting.
I wonder how much attempt you set to create this sort of wonderful informative website.

Reply
Polenböller kaufen October 27, 2020 - 2:26 pm

Hi there i am kavin, its my first occasion to
commenting anywhere, when i read this paragraph i thought i could
also create comment due to this sensible post.

Reply
메이저 토토사이트 November 15, 2020 - 2:32 am

Hey! I could have sworn I’ve been to this website
before but after browsing through some of the post I realized it’s new to me.
Anyways, I’m definitely happy I found it and
I’ll be bookmarking and checking back frequently!

Also visit my blog 메이저 토토사이트

Reply
여기를 클릭 November 19, 2020 - 8:23 am

Howdy! Someone in my Myspace group shared this site with us so
I came to take a look. I’m definitely loving the information. I’m book-marking
and will be tweeting this to my followers! Exceptional blog and
outstanding style and design. 여기.

Reply
Car Accessories November 26, 2020 - 12:12 am

Every weekend i used to pay a visit this web page, as i want enjoyment,
as this this web page conations truly fastidious funny stuff too.

Reply

Leave a Comment