How to Uninstall or Install MySQL in Ubuntu?

HOW TO INSTALL MYSQL

Step-1 : sudo apt-get install mysql-server
Step-2 : sudo mysql_secure_installation

Step-3 : sudo mysql -u root -p
YouTube : https://www.youtube.com/watch?v=ug0TFsort24

HOW TO UNINSTALL MYSQL

Step-1 : sudo apt-get purge mysql-server mysql-client mysql-common mysql-server-core-* mysql-client-core-*
Step-2 : sudo rm -rf /etc/mysql /var/lib/mysql
Step-3 : sudo apt-get autoremove

Step-4 : sudo apt-get autoclean

Post a Comment

1 Comments