Ubuntu completely uninstall mysql turn

When we want to uninstall mysql after installing mysql, the uninstallation is often incomplete, causing problems with the next installation. The following provides a method for ubuntu to uninstall mysql completely.

lab environment##

step##

Reminder: Be sure to confirm whether the data in the database is backed up before execution, the data is priceless!

sudo apt-get autoremove --purge mysql-server*

sudo apt-get remove mysql-server*

sudo apt-get autoremove mysql-server*

sudo apt-get remove mysql-common

sudo rm -rf /etc/my.cnf
#! /bin/bash

list=`sudo find / -name mysql*`for i in $list

do

sudo rm -rf $i

done

exit 0
sudo chmod u+x deleteMysql.sh

sudo ./deleteMysql.sh

summary##

Now mysql should be completely uninstalled, and then you can run away (by mistake)!!!∑(゚Д゚ノ)ノ

Recommended Posts

Ubuntu completely uninstall mysql turn
Ubuntu completely remove MySQL
Ubuntu14 upgrade MySQL
Install mysql under Ubuntu 16.04
Install mysql on Ubuntu 14.04
Ubuntu19 install MySQL pit
Install MySQL under Ubuntu
ubuntu dpkg software uninstall
Install Mysql offline on Ubuntu
Ubuntu16.04 install and uninstall VMware-Workstation 14
How to install MySQL on Ubuntu 20.04
Turn on Wifi on laptop Ubuntu system
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
How to install mysql in Ubuntu 14.04
MySQL connected to remote Ubuntu server
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Ubuntu install MySQL password initialization problem
How to install mysql in Ubuntu 14.04
How to uninstall software on Ubuntu
How to install MySQL on Ubuntu 14.04