Uninstall in Linux

from the Artful MySQL Tips List


In the terminal ...
sudo -i
service mysql stop
killall -KILL mysql mysqld_safe mysqld
apt-get --yes purge mysql-server mysql-client
apt-get --yes autoremove --purge
apt-get autoclean
deluser --remove-home mysql
delgroup mysql
rm -rf /etc/apparmor.d/abstractions/mysql 
  /etc/apparmor.d/cache/usr.sbin.mysqld 
  /etc/mysql /var/lib/mysql rm -rf 
  /etc/apparmor.d/abstractions/mysql 
  /etc/apparmor.d/cache/usr.sbin.mysqld 
  /etc/mysql /var/lib/mysql /var/log/mysql* 
  /var/log/upstart/mysql.log* 
  /var/run/mysqld updatedb
exit

Return to the Artful MySQL Tips page