How do I uninstall MySQL completely from Ubuntu ?

Open a terminal (press Ctrl+Alt+T) and run the following command in sequence:

sudo service mysql stop  #or mysqld

sudo killall -9 mysql

sudo killall -9 mysqld

sudo apt-get remove --purge mysql-server mysql-client mysql-common

sudo apt-get autoremove

sudo apt-get autoclean

sudo deluser mysql

sudo rm -rf /var/lib/mysql

sudo apt-get purge mysql-server-core-5.5

sudo apt-get purge mysql-client-core-5.5

sudo rm -rf /var/log/mysql

sudo rm -rf /etc/mysql

Remove PHP completelly from ubuntu

To Remove PHP completely from Ubuntu run the following:

sudo apt-get purge php.* 


Comments

Popular posts from this blog

How to Install AnyDesk remote desktop client on Ubuntu

How to install Jaspersoft Studio on Eclipse

What is Advanced Encryption Standard (AEC) and online tool to encrypt and decrypt data using AEC.