Uninstall or Completely remove mysql from ubuntu 16-04

While upgrading from ubuntu 16.04.1 to ubuntu 16.04.03, we had face once issue that we unexpected.

This incident are cause by mysql server update, while setting up the mysql by apt, its hang on the server and will not work for leaving it around one hours.

So we decide to remove the mysql server and reinstall again, below are the step that we were done.

  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
  7. sudo apt-get install mysql-server

if still not working for you, please check any mysql process running on your server, it can be view by using top command and service mysql stop, otherwise try step3 before going through step 1 and 2.

0 replies

Leave a Reply

Want to join the discussion?
Feel free to contribute!

Leave a Reply

Your email address will not be published. Required fields are marked *