If we say that MySQL is the most known and popular database manager, we wouldn’t be talking nonsense either. But not only that but MySQL also originates other projects like forks. Well, in this post I’ll tell you about one of those forks. You will also learn how to install Percona on Debian 10.
Percona and MySQL
Percona Server is a MySQL fork. This makes it 100% compatible with this one, including commands and configurations. In the beginning, it was a community project but today it has a company behind it that offers mainly even more efficiency than MySQL for a lower cost. Percona Server also includes XtraDB which is a fork of the InnoDB engine that makes the application more efficient.
As expected, Percona also has a free version that we can install without problems and is available for Linux.
Thanks to the associated tools of Percona, it is possible to monitor and keep statistics of the performance of the database. On the other hand, Percona also includes in its products an alternative to Galera, which allows us to build our clusters with full compatibility with it.
Install Percona on Debian 10
Percona puts at our disposal a special repository to facilitate the installation of the program. To add it, you must download the corresponding DEB package:
:~$ wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb --2020-03-07 14:58:07-- https://repo.percona.com/apt/percona-release_latest.buster_all.deb Resolving repo.percona.com (repo.percona.com)... 18.104.22.168, 22.214.171.124, 126.96.36.199 Connecting to repo.percona.com (repo.percona.com)|188.8.131.52|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 9622 (9.4K) [application/octet-stream] Saving to: 'percona-release_latest.buster_all.deb' percona-release_latest.buster_all.deb 100%[=====================================================================================>] 9.40K --.-KB/s in 0s 2020-03-07 14:58:09 (28.9 MB/s) - 'percona-release_latest.buster_all.deb' saved [9622/9622]
Once you download it, you have to install it with gdebi.
:~$ sudo gdebi percona-release_latest.buster_all.deb Reading package lists... Done Building dependency tree Reading state information... Done Reading state information... Done Package to install Percona gpg key and APT repos Do you want to install the software package? [y/N]:y /usr/bin/gdebi:113: FutureWarning: Possible nested set at position 1 c = findall("[[(](\S+)/\S+)]", msg).lower() (Reading database ... 62905 files and directories currently installed.) Preparing to unpack percona-release_latest.buster_all.deb ... <*> All done! ==> Please run "apt-get update" to apply changes Unpacking percona-release (1.0-15.generic) over (1.0-15.generic) ... Setting up percona-release (1.0-15.generic) ... * Enabling the Percona Original repository <*> All done! ==> Please run "apt-get update" to apply changes The percona-release package now contains a percona-release script that can enable additional repositories for our newer products. For example, to enable the Percona Server 8.0 repository use: percona-release setup ps80 Note: To avoid conflicts with older product versions, the percona-release setup command may disable our original repository for some products. For more information, please visit: https://www.percona.com/doc/percona-repo-config/percona-release.html
In case you don’t have gdebi installed, you can do it with the following command:
:~$ sudo apt install gdebi
Once the package is installed, the repository is added to the system software sources, but the repository is not enabled. To do this, simply use the following command:
:~$ sudo percona-release setup ps80
It is now possible to install Percona Server by using the following command:
:~$ sudo apt install percona-server-server Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: debsums libaio1 libcurl4 libfile-fnmatch-perl libmecab2 libnuma1 percona-server-client percona-server-common psmisc The following NEW packages will be installed: debsums libaio1 libcurl4 libfile-fnmatch-perl libmecab2 libnuma1 percona-server-client percona-server-common percona-server-server psmisc 0 upgraded, 10 newly installed, 0 to remove and 53 not upgraded. Need to get 53.8 MB of archives. After this operation, 387 MB of additional disk space will be used. Do you want to continue? [Y/n
During the installation, you will be asked to enter the initial root password. I recommend that it be quite strong.
After you have confirmed it, you can select the default authentication plugin. It is better to choose the recommended option for more security.
If everything went well, you’ll see this message on the terminal.
As with MySQL and MariaDB, you can enter the console with the following command:
:~$ sudo mysql -u root -p
In this console, you can execute the SQL commands you want.
Finally, check the installed version.
:~$ mysql --version
In effect, we have the latest version of Percona on Debian 10.
Percona is a database solution to be considered. Despite being a fork it has its own personality which makes it quite attractive to many companies. As you have seen in this post, it is quite easy to install it in Debian 10.
Please share this post and join our Telegram channel.