Saturday, January 23, 2021

Fresh install MySQL Server Ubuntu

Do following steps:

  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. >> optional, it would consume a lot of bandwith
  7. sudo apt-get install mysql-server.

input root password and do not forget
run your mysql-server (service mysql restart)
log into your mysql (mysql -u root -p) input your root password

No comments:

Post a Comment