Hello,
In this article i will show you how you can de delete and remove MySQL from your Linux System.
Sometimes uninstalling and reinstalling Mysql in a machine with a Linux system, poses problems using MySQL, and doing it again does not solve the problem. because there are still files from the old configuration that remain in the directories also in the system level cash files.
To avoid this problem I recommend that you follow the following steps to do a complete uninstall of MySQL.
So the first step is to uninstall all the MySQL packages installed on your server by using the next command :
sudo apt remove mysql mysql-server
After that we need to delete MySQL data directory from system which by default exists at /var/lib/mysql, so deleting this directory /var/lib/mysql directory from the system will remove MySQL definitely from your system, to do that you need only to run the next two commands :
sudo mv /var/lib/mysql
sudo mv /etc/mysql
After uninstalling MySQL completely, you can install it again without any problem.
0 comments:
Post a Comment