Uninstall MySQL Completely on Debian, Ubuntu, Linux Mint, Pop!_OS, Elementary OS
If you encounter some technical problems with a package on Linux, the first thing you do is probably try to reinstall it. But the configuration is still there after the package is removed, so everything goes right back to the start after reinstalling it. That's why this guide will cover how to completely purge MySQL.