In this article, we will see how to uninstall MySQL from Ubuntu.
Important Note: I suggest you to take backup of your important MySQL databases. Once we uninstall, all your MySQL data will be lost.
1. Stop MySQL server using below command.
sudo systemctl stop mysql