Skip to content

Instantly share code, notes, and snippets.

@JoshieKun
Created September 20, 2019 18:27
Show Gist options
  • Select an option

  • Save JoshieKun/d3a33e227bc23e2b9536ad07762626a3 to your computer and use it in GitHub Desktop.

Select an option

Save JoshieKun/d3a33e227bc23e2b9536ad07762626a3 to your computer and use it in GitHub Desktop.
Delete Mysql UBUNTU
sudo service mysql stop #or mysqld
sudo killall -9 mysql
sudo killall -9 mysqld
sudo apt-get remove --purge mysql-server mysql-client mysql-common
sudo apt-get autoremove
sudo apt-get autoclean
sudo deluser -f mysql
sudo rm -rf /var/lib/mysql
sudo apt-get purge mysql-server-core-5.7
sudo apt-get purge mysql-client-core-5.7
sudo rm -rf /var/log/mysql
sudo rm -rf /etc/mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment