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

Top 5 Websites for Java Application Examples with source code

How to create exe of java application using launch4j and inno setup compiler