How to Install Percona server for MySQL 8.0 on Ubuntu 20.04|18.04 / Debian 10/9?. Percona Server for MySQL is a free and open source distribution of the MySQL relational database management system created by Percona. It is a fully compatible drop-in replacement for Oracle MySQL. In this guide, we will look at how to install and configure Percona MySQL Server 8.0 on Ubuntu 20.04|18.04 / Debian 10|9

For RHEL / CentOS 8: How To Install Percona MySQL Server 8 on CentOS 8 / RHEL 8

If you want to use MySQL / MariaDB database server, then check the following guides instead.

How to Install MySQL 8.0 on Ubuntu

A detailed feature comparison for MySQL and Percona Server for MySQL is available on this link. Below are the steps to install Percona Server for MySQL on Ubuntu and Debian Linux distributions.

Step 1: Add Percona repository

Download repository packages from Percona.

sudo apt update
sudo apt install wget
wget$(lsb_release -sc)_all.deb

Then Install the downloaded package with dpkg.

sudo dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb

The command above will add the repository file to /etc/apt/sources.list.d/percona-release.list

Step 2: Install Percona Server for MySQL 8.0

Enable the repository:

$ sudo percona-release setup ps80
* Disabling all Percona Repositories
* Enabling the Percona Server 8.0 repository
* Enabling the Percona Tools repository
Get:1 focal InRelease [12.2 kB]
Get:2 focal InRelease [9779 B]
Get:3 focal InRelease [15.8 kB]
Get:4 focal InRelease [15.8 kB]
Get:5 focal/mysql-8.0 Sources [963 B]
Get:6 focal/mysql-apt-config amd64 Packages [566 B]
Get:7 focal/mysql-8.0 amd64 Packages [6026 B]
Get:8 focal/mysql-tools amd64 Packages [6426 B]
Get:9 focal-security InRelease [114 kB]
Hit:10 focal InRelease
Get:11 focal/main amd64 Packages [750 B]
Get:12 focal-updates InRelease [114 kB]
Get:13 focal-backports InRelease [101 kB]
Get:14 focal/main Sources [1999 B]
Get:15 focal/main amd64 Packages [27.6 kB]
Get:16 focal/main Sources [7579 B]
Get:17 focal/main amd64 Packages [20.2 kB]
Fetched 454 kB in 1s (677 kB/s)
Reading package lists... Done

After enabling the repository, install Percona Server for MySQL 8.0

 sudo apt install percona-server-server

Provide root password and set Select default authentication plugin when prompted. Wait for the installation to finish then login to MySQL shell.

$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 10
Server version: 8.0.13-3 Percona Server (GPL), Release '3', Revision 'a920dd6'
Copyright (c) 2009-2018 Percona LLC and/or its affiliates
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
| 8.0.13-3 |
1 row in set (0.00 sec)
mysql> QUIT;

Percona Server for MySQL 5.7 can be installed by running:

$ sudo percona-release setup ps57
* Disabling all Percona Repositories
* Enabling the Percona Server 5.7 repository
* Enabling the Percona XtraBackup 2.4 repository
Hit:1 focal InRelease
Hit:2 focal InRelease
Get:3 focal InRelease [9809 B]
Get:4 focal InRelease [9779 B]
Hit:5 focal-security InRelease
Hit:6 focal InRelease
Hit:7 focal-updates InRelease
Hit:8 focal-backports InRelease
Get:9 focal/main Sources [2461 B]
Get:10 focal/main amd64 Packages [19.6 kB]
Get:11 focal/main Sources [1828 B]
Get:12 focal/main amd64 Packages [2731 B]
Fetched 46.2 kB in 1s (48.7 kB/s)
Reading package lists... Done

$ sudo apt install percona-server-server-5.7

Percona Server for MySQL 8.0 comes with the TokuDB storage engine and MyRocks storage engines. These storage engines are installed as plugins. See  Percona MyRocks Installation Guide.

Step 3: Install Desktop Database Management Tool (Optional)

If working with MySQL command line is not your thing, then consider installing a Database Tool to help you. Check out our guide below:

Install and Configure DBeaver on Ubuntu / Debian

Udemy Video Courses to Learn MySQL Database:

Also read:

How to Install and use Percona Toolkit on Ubuntu

Monitoring MySQL and MongoDB with Prometheus and Grafana – PMM

Monitoring MySQL / MariaDB with Prometheus in five minutes

Your support is our everlasting motivation,
that cup of coffee is what keeps us going!

As we continue to grow, we would wish to reach and impact more people who visit and take advantage of the guides we have on our blog. This is a big task for us and we are so far extremely grateful for the kind people who have shown amazing support for our work over the time we have been online.

Thank You for your support as we work to give you the best of guides and articles. Click below to buy us a coffee.


Please enter your comment!
Please enter your name here