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

Networking | Support | Tricks | Troubleshoot | Tips

Buymecoffe

Buy Me A Coffee

Thursday, October 24, 2019

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