---
title: "How to Install Percona DB Server"
description: "In this tutorial we will show you how to install Percona DB server via SSH. This will allow you to replace MySQL with Percona DB Server. Percona DB Server is not officially supported by cPanel and..."
url: https://www.inmotionhosting.com/support/edu/software/install-percona-db-server/
date: 2017-06-26
modified: 2023-12-22
author: "InMotion Hosting Contributor"
categories: ["Software"]
type: post
lang: en
---

# How to Install Percona DB Server

In this tutorial we will show you how to install Percona DB server via SSH. This will allow you to replace MySQL with [Percona DB Server](https://www.inmotionhosting.com/support/server/databases/percona-db/).

Percona DB Server is not officially supported by cPanel and InMotion at this time. You will need [Root Access](https://www.inmotionhosting.com/support/amp/obtain-root-access/) to complete this guide.

## Installing Percona

1. SSH into your server as the [root](https://www.inmotionhosting.com/support/server/ssh/ssh-advantages/) user.
2. Run the following command to download the Percona package: yum install https://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
3. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/06/database_percona_is-this-ok.png)](/support/wp-content/uploads/2017/06/database_percona_is-this-ok.png)You will see the following message, type ‘y’ for yes then click the **enter** key. Total size: 5.8 k Installed size: 5.8 k Is this ok [y/N]: [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/06/database_percona_complete.png)](/support/wp-content/uploads/2017/06/database_percona_complete.png) You should then see a “Complete!” message.
4. Run the following command to install epel. This will allow you to install libev, which is required. yum install epel-release
5. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/06/database_percona_install-epel.png)](/support/wp-content/uploads/2017/06/database_percona_install-epel.png)You will see the following message, type ‘**y**‘ for yes then click **enter**. Installed size: 22 k Is this ok [y/N]: y
6. Run the following command to install libev. yum install libev
7. You will see the following message, type ‘**y**‘ for yes then click **enter**. Total download size: 113 k Installed size: 151 k Is this ok [y/N]: y
8. Run the following command to install Percona XtraBackup. This will allow you to revert the changes if necessary. yum install percona-xtrabackup
9. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/06/database_percona_install-xtrabackup.png)](/support/wp-content/uploads/2017/06/database_percona_install-xtrabackup.png)When you see the following message, type ‘**y**‘ for yes then click **enter**. You should see this message twice. Is this ok [y/N]:
10. Create a backup by running this command: xtrabackup --target-dir=/backup/xtrabackup --backup Then, run this command: xtrabackup --target-dir=/backup/xtrabackup --prepare
11. Stop and remove MySQL by running the following commands: service mysql stop Then, run this command: yum remove MySQL* mysql*
12. Run the following command to install Percona Server: yum install Percona-Server-server-57 percona-toolkit percona-xtrabackup
13. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2017/06/database_percona_percona-db-server-type-phpmyadmin.png)](/support/wp-content/uploads/2017/06/database_percona_percona-db-server-type-phpmyadmin.png)At this point Percona DB Server has been installed. You can verify this by [logging into cPanel](https://www.inmotionhosting.com/support/edu/cpanel/how-to-log-into-cpanel/), clicking **phpMyAdmin**, then viewing the **Database Type** in the *Database server* section.

Congratulations, now you know how to install Percona DB Server on your server!
