Completely remove or uninstall MySQL from Ubuntu

If you in any cases need to remove or uninstall MySQL from Ubuntu, follow the following steps. Before running following commands make sure MySql is not running.

  1. sudo apt-get remove --purge mysql*
  2. sudo apt-get purge mysql*
  3. sudo apt-get autoremove
  4. sudo apt-get autoclean
  5. sudo apt-get remove dbconfig-mysql
  6. sudo apt-get dist-upgrade

About the author

Danyal Ali Butt

I'm working as programmer since 2002. Born, grew up, studied and worked in Pakistan now Im located in Denmark since 2006.

View all posts