How can Mysql 8.0 be installed in droplet?

Posted April 26, 2020 1.9k views

I have a droplet with following configuration.

  • name: ubuntu-s-1vcpu-2gb-sgp1-01
  • os: Ubuntu 18.04.3 (LTS) x64
  • web server: tomcat 9
  • Java 8

MySQL 5 is installed.

Can I install MySQL8.0.

Warm Regards

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hi there @prabars,

If you are not using the current MySQL instance, you can follow the steps from this tutorial here on how to install the latest MySQL version on Ubuntu:

However, if you are using the MySQL 5 instance already, you need to be careful and follow the instructions from the official MySQL documentation on how to upgrade from MySQL 5 to MySQL 8:

NOTE: I would also strongly recommend taking a snapshot of your Droplet before proceeding with the upgrade in case that anything goes wrong.


by Brian Boucheron
In this tutorial we will install the MySQL official apt software repository, then install the MySQL software itself, secure the installation, and finally we'll test that MySQL is running and responding to commands.