unistall mysql ubuntu code example
Example 1: remove mysql from ubuntu
sudo apt-get remove --purge mysql*
Example 2: uninstall mysql ubuntu 18.04
$ sudo apt-get remove --purge mysql-server mysql-client mysql-common -y
$ sudo apt-get autoremove -y
$ sudo apt-get autoclean
$ sudo rm -rf /etc/mysql
# Delete all MySQL files on your server:
$ sudo find / -iname 'mysql*' -exec rm -rf {} \;
Example 3: remove mysql
sudo apt-get remove --purge mysql* -y
sudo apt-get autoremove -y
sudo apt-get autoclean
Example 4: mysql remove ubuntu
apt-get --purge remove "mysql*"
Example 5: how to get mysql on ubuntu
sudo apt install mysql-server