• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

OOFLOO

Product Reviews & Buying Guides

  • Home
  • Best Audio Devices
  • Best Routers
  • Tech Reviews
  • About
Home » Uninstall MySQL in Ubuntu [Updated 2019]

Uninstall MySQL in Ubuntu [Updated 2019]

May 18, 2019 by Editorial Team

The main purpose of this article is to help you easily uninstall MySQL Ubuntu. As we all know that every operating system updating day by day. Almost there is not even a single day when we don’t get updates.


Complete Guide for MySQL is here  for Developers & Suggested Book for you is here please check it out  MySQL Optimization,Replication & Backup

In This Article

  • 1 Uninstall MySQL in Ubuntu:
  • 2 How to uninstall MySQL Ubuntu:
  • 3 How to remove MySQL Ubuntu (Alternative):
  • 4 Uninstall MySQL from Ubuntu and Install MariaDB
  • 5 Successfully Uninstall MySQL from Ubuntu:

Uninstall MySQL in Ubuntu:

Although it is to be said that updates make our software or operating system more smooth but sometimes it got some issues as in most of the operating system the problem we got that it drains more battery in new updates. It is the minor effect that I tell you just for understanding. So I decided to uninstall MySQL from Ubuntu.

Ubuntu is a free and open-source Linux distribution based on Debian. Ubuntu is officially released in three editions: Desktop, Server, and Core. Ubuntu is a popular operating system for cloud computing, with support for OpenStack. Ubuntu is released every six months, with long-term support releases every two years.

While upgrading from Ubuntu 16.04.1 to Ubuntu 16.04.03, we faced one issue that was unexpected.

This incident is caused by MySQL server update while setting up the MySQL by apt, its hang on the server and will not work for leaving it around one hour.

So we decide to remove MySQL ubuntu server and reinstall again, below are the steps that we were done.

How to uninstall MySQL Ubuntu:

Here are the steps that helped us to uninstall MySQL in Ubuntu:

 

 

  1. sudo apt-get remove --purge mysql*
  2. sudo apt-get purge mysql*
  3. sudo apt-get autoremove
  4. sudo apt-get autoclean
  5. sudo apt-get remove dbconfig-mysql
  6. sudo apt-get dist-upgrade
  7. sudo apt-get install mysql-serverYou will get this type of Pictures to remove MySQL from ubuntu after applying these steps.

 

uninstall mysql ubuntu

 

 

uninstall mysql ubuntu

 

uninstall mysql ubuntu

How to remove MySQL Ubuntu (Alternative):

Due to different directories that we create in our operating system we got some problems with uninstalling MySQL. If this is still not working for you,

Follow these commands

service mysql stop

 

killall -KILL mysql mysqld_safe mysqld

 

apt-get --yes purge mysql*

 

apt-get --yes autoremove --purge

 

apt-get autoclean

 

deluser --remove-home mysql

 

delgroup mysql

 

rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld

 

/etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log*

 

/var/run/mysqld ~/.mysql_history

 

updatedb

If still not working for you, Please check any MySQL process running on your server, it can be view by using top command and service MySQL stop, otherwise, try step 3 before going through step 1 and 2.

Here is another way to remove MySQL ubuntu

 

Uninstall MySQL from Ubuntu and Install MariaDB

You may have heard about the upstart MySQL database MariaDB Getting Started with MariaDB, a branch of MySQL created in the wake of Oracle’s purchase of Sun Microsystems. You’ll find many great reasons to consider MariaDB, not least that MariaDB is led by the original author of MySQL, Monty Widenius. But there are reasons to stick with MySQL too for sometimes.

Step 1: Check that MySQL is installed

On Ubuntu 16.04/15.10/15.04:

 

1 sudo systemctl status mysql

On Ubuntu 14.10 and previous versions:

1 sudo service mysql status

 

 

uninstall mysql ubuntu remove

 

 

Step 2: Uninstall MySQL

if you want to install MariaDB on your system first you have to uninstall existing MySQL. Follow these steps to uninstall completely existing MySQL from the server.

1-sudo systemctl stop mysql

2-sudo apt-get remove --purge mysql-server mysql-client mysql-common

uninstall mysql ubuntu

Uninstall MySQL

1 sudo apt-get autoremove

1

2

3

sudo apt-get autoclean

sudo rm -rf /var/lib/mysql/

sudo rm -rf /etc/mysql/

 

Step 3: Install MariaDB

When MySQL in uninstalled completely then run the following command to install MariaDB.

1 sudo apt-get install mariadb-server

Step 4 (Final): Checking MariaDB is installed

1 sudo systemctl status mysql

 

Successfully Uninstall MySQL from Ubuntu:

After following all the steps as stated in the article, you will be able to completely remove and uninstall MySQL from Ubuntu. If you are still facing any issues, feel free to comment on your queries below. We’d assist you ASAP.


Filed Under: Best Routers

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest Reviews

  • Best 7 High Visibility Winter Jackets Reviews & Buyers Guide: Essential For Mountain Pursuits
  • The 5 Best Hard Hats 2020 : That Suit The Mining Job (Buyers Guide & Reviews)
  • 5 Best Tent Air Conditioner Systems For Camping : Reviews & Buying Guide
  • 6 Best Laptops For Sims 4 2020 – (Reviewed All Expansions Packs CC & Mods)
  • 5 Best Laptops For Excel: (Reviews & Buyer’s Guide )For All Budgets
  • Top 7 Best Laptops For Stock Trading (2020) – Buyers Guide .
  • 5 Best laptops for Medical students in 2020 [Expert Recommendations]
Bolse Wifi Adapter Download Drivers
  • Advertise
  • Privacy Policy
  • Disclamer
COPYRIGHT © 2019 · OOFLOO.COM, ALL RIGHTS RESERVED.

oofloo.com © 2019 OOFLOO (oofloo.com) is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to amazon.com

This website uses cookies to provide you with the best browsing experience.

Find out more or adjust your settings.

OOFLOO
Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.