How to Uninstall/Remove MySQL/PHP DB From Ubuntu, LinuxMint and Debian

MySQL Uninstall

sudo apt-get remove --purge mysql-server mysql-client mysql-common mysql-server-core-5.5 mysql-client-core-5.5
sudo rm -rf /etc/mysql /var/lib/mysql /var/lib/mysql
sudo apt-get autoremove
sudo apt-get autoclean

PHP Uninstall
aptitude search php5
sudo apt-get -y purge php.*

sudo apt-get autoremove
sudo apt-get autoclean

0 Comments