Thursday, February 11, 2021

How do I uninstall MySQL completely from ubuntu/Debian

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



sudo rm -rf /var/lib/mysql 

 

sudo apt-get remove --purge *mysql\*


sudo apt-get autoremove


sudo apt-get autoclean 




No comments:

Create Superuser in Mysql

Login MySQL using mysql -u root -p CREATE USER 'superuser'@'localhost' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGE...