ubuntu 18.04 remove mysql and install mariadb code example
Example 1: uninstall mariadb server and client in ubuntu 18.4
sudo apt-get autoclean
sudo rm -rf /var/lib/mysql/
sudo rm -rf /etc/mysql/
Example 2: uninstall mariadb server and client in ubuntu 18.4
sudo apt-get autoremove