I have Ubuntu 18.04. I want to completely remove MySql server with all the files and folders.

I've tried Synaptic Packet Manager, but since there are some error packets, I can't do it using that. What command should I use in Terminal for complete cleaning? Will I then be able to install everything again and then to work again?

ps. I installed full LAMP using tasksel, I hope it won't influence on that


Try this:

sudo apt purge mysql-*

Afterwards run:

sudo apt autoremove

To install MySQL again follow guide here.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.