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
Prabhakaran

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.

×
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:

https://www.digitalocean.com/community/tutorials/how-to-install-the-latest-mysql-on-ubuntu-18-04

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:

https://dev.mysql.com/doc/refman/8.0/en/upgrading-what-is-upgraded.html

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

Regards,
Bobby

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.
Submit an Answer