How can i completely remove/Uninstall MariaDB

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


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 wheezy-updates main
# deb wheezy main
# deb-src wheezy main
deb-src 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.