If you in any cases need to remove or uninstall MySQL from Ubuntu, follow the following steps. Before running following commands make sure MySql is not running.
sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade