Methods of payment Abuse

How to remove MySQL from Ubuntu?

20.01.2023, 23:30
We told you how to install MySQL DBMS in Ubuntu operating system from the official repository and developer repository. For a number of reasons, you may want to get rid of this solution in favor of another DBMS, so it will also be useful for you to know how to completely remove MySQL from the system. We will tell you more about it.

Removing the DBMS from Ubuntu

MySQL is removed (completely) from the Ubuntu 22.04 operating system simply, in just a few minutes. But you can delete this solution, leaving the important configuration part. With this method of removal, only the package will be uninstalled. If you need to do just that, it would be appropriate to use the command:
$ sudo apt remove mysql-server mysql-client
If you want to completely remove MySQL, use the purge command:
sudo apt purge mysql-server mysql-client
That's all. This DBMS is deleted without any problems.