Skip to content

Instantly share code, notes, and snippets.

@chrisgalard
Last active October 28, 2019 05:47
Show Gist options
  • Save chrisgalard/7abbb430815738c6475e900022fd151e to your computer and use it in GitHub Desktop.
Save chrisgalard/7abbb430815738c6475e900022fd151e to your computer and use it in GitHub Desktop.
Installing MySQL 8.0

Installing MySQL 8.0 in Ubuntu 18.04

Step 1

Go to your tmp directory:

cd /tmp

Step 2

Download the MySQL configuration package:

curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.13-1_all.deb

Step 3

Install the package:

dpkg -i mysql-apt-config_0.8.10-1_all.deb

Step 4

Update your system:

sudo apt update

Step 5

Install MySQL Server and Client:

sudo apt install mysql-server

Step 6

Confirm that MySQL 8.0 is running:

mysql -V

Step 7

Secure your installation (if installed in production):

mysql_secure_installation

Additional notes:

  • Check your MySQL status with systemctl status mysql
  • Enable MySQL on bootup with systemctl enable mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment