How do I Install MySQL 8.0 Linux Ubuntu?

How do I Install MySQL 8.0 Linux Ubuntu? When I searched in market place MySQL version 5.7.23 is only available on Ubuntu 18.04.


I have debian 8.5. I attempted the steps below. Along the way, I was presented with a blue screen, where I was able to select mysql-8. As I progressed through the steps, I encountered a few complaints but nothing that looked to me show-stopping. Yet at the end of the process, mysql -v returned 5.5.62.

The steps aren’t complicated, so I’m wondering if the reason I didn’t get mysql 8 has to do with debian 8.5?

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

This comment has been deleted

There is an APT repo for installing MySQL server and client.

  1. Ensure wget is installed sudo apt install wget

  2. Download the repo package wget -c

  3. Install the repo package sudo dpkg -i mysql-apt-config_0.8.10-1_all.deb

Note, the installation will ask you to choose a MySQL server version and other components such as cluster, shared client libraries, or the MySQL Workbench.

  1. update your repo library sudo apt update

  2. Install MySQL server sudo apt install mysql-server

  3. Secure MySQL sudo mysql_secure_installation

  4. Install MySQL Client sudo apt install mysql-client