Installing Percona Server on Red Hat Enterprise Linux and CentOS

Installing Percona Server from Percona yum repository

  1. Install the Percona repository

    You can install Percona yum repository by running the following command as a root user or with sudo:

    yum install http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
    

    You should see some output such as the following:

    Retrieving http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
    Preparing...                ########################################### [100%]
    1:percona-release        ########################################### [100%]
    

Note

RHEL/Centos 5 doesn’t support installing the packages directly from the remote location so you’ll need to download the package first and install it manually with rpm:

wget http://www.percona.com/downloads/percona-release/redhat/0.1-4/percona-release-0.1-4.noarch.rpm
rpm -ivH percona-release-0.1-4.noarch.rpm
  1. Testing the repository

    Make sure packages are now available from the repository, by executing the following command:

    yum list | grep percona
    

    You should see output similar to the following:

    ...
    Percona-Server-55-debuginfo.x86_64          5.5.44-rel37.3.el6           percona-release-x86_64
    Percona-Server-client-55.x86_64             5.5.44-rel37.3.el6           percona-release-x86_64
    Percona-Server-devel-55.x86_64              5.5.44-rel37.3.el6           percona-release-x86_64
    Percona-Server-server-55.x86_64             5.5.44-rel37.3.el6           percona-release-x86_64
    Percona-Server-shared-55.x86_64             5.5.44-rel37.3.el6           percona-release-x86_64
    Percona-Server-shared-compat.x86_64         5.1.68-rel14.6.551.rhel6     percona-release-x86_64
    Percona-Server-test-55.x86_64               5.5.44-rel37.3.el6           percona-release-x86_64
    ...
    
  2. Install the packages

    You can now install Percona Server by running:

    yum install Percona-Server-server-57
    
  3. Stop MySQL

    service mysql stop
  4. Start MySQL

    service mysql start
    
  5. Enter to MySQL
    mysql -u root -p