Hello friends,
In this post, we’ll discuss how to completely remove MySQL 5.7 on Ubuntu. To remove completely MySql on ubuntu
Run following command :
apt remove --purge mysql-server mysql-client mysql-common
You will see a confirmation prompt for removing MySQL. Press yes
. Then, delete the MySQL directory:
rm -rf /var/lib/mysql
Also, run the following commands to clean up all the cache:
apt autoremove
apt autoclean
After everything is done, confirm by running the mysql
command, the service should no longer exist.
Hope this helps!
Top comments (0)