How can i completely remove/Uninstall MariaDB

i want to know how can i  completely remove/Uninstall MariaDB  from my debian server.

thanks

Supporter Asked on March 19, 2016 in Programmer.
Add Comment
1 Answer(s)
Best answer

first Stop any running instanced of MariaDB

sudo service mysql stop

Remove all MySQL packages from the system

sudo apt-get --purge remove "mysql*" # this will delete all database , make backup of your db's

Remove the configs file

sudo mv /etc/mysql/ /tmp/mysql_configs/

Remove from the source list

nano /etc/apt/sources.list
# wheezy-updates, previously known as 'volatile'
deb http://ftp.uk.debian.org/debian/ wheezy-updates main
# deb http://lon1.mirrors.digitalocean.com/mariadb/repo/5.5/debian wheezy main
# deb-src http://lon1.mirrors.digitalocean.com/mariadb/repo/5.5/debian wheezy main
deb-src http://ftp.uk.debian.org/debian/ wheezy-updates main

press ctrl + O to save it then to exit from nano editor press ctrl + X and finally

sudo apt-get update
Supporter Answered on March 19, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.