how to uninstall mysql ubuntu code example
Example 1: remove mysql from ubuntu
sudo apt-get remove --purge mysql*
Example 2: remove mysql
sudo apt-get remove --purge mysql* -y
sudo apt-get autoremove -y
sudo apt-get autoclean
Example 3: mysql remove ubuntu
apt-get --purge remove "mysql*"