How do I Install MySQL 8.0 Linux Ubuntu?

May 27, 2019 467 views
MySQL Ubuntu 18.04

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.

1 Answer

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

Have another answer? Share your knowledge.