How to install Percona Server MySQL replacement on Debian

Valic —  April 2, 2012 — 2 Comments

Debian and Ubuntu packages from Percona are signed with a key. Before using the repository  you ought to add the key to apt.

For that run the following commands:

Step1. Add the Percona repository:

gpg –keyserver hkp://keys.gnupg.net –recv-keys 1C4CBDCDCD2EFD2A
gpg -a –export CD2EFD2A | sudo apt-key add -
echo “deb http://repo.percona.com/apt squeeze main” >> /etc/apt/sources.list
echo “deb-src http://repo.percona.com/apt squeeze main” >> /etc/apt/sources.list

Step2. Install Percona Server:

apt-get update
apt-get install  percona-server-server-5.5

That command will automatically install the following packages: percona-server-client-5.5 percona-server-common-5.5 percona-server-server-5.5

Step3. Check if Percona is installed properly:

mysql -u root -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 69
Server version: 5.5.20-55 Percona Server (GPL), Release 24.1
Copyright (c) 2000, 2011, 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
owners.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
mysql>

Enjoy.

Valic

Posts Twitter Facebook

Editor in Chief at Debian-Tutorials, Linux enthusiast.

2 responses to How to install Percona Server MySQL replacement on Debian

  1. I have installed percona 5.5 but now i have an error message in my phpmyadmin : La version de votre bibliothèque MySQL (5.1.62) diffère de la version de votre serveur MySQL (5.5.22). Ceci peut occasionner un comportement imprévisible.

    Someone could help me ?

    Thank you.

  2. The error message tells you that the MySQL version which was used to build the php extension of your web server was older than the MySQL youve actually installed on your system. This might have happened because you have updated your data base to a newer version but didn’t update your php installation accordingly.

    To solve the problem try to install the latest PHP and Apache2 vaersions.

Leave a Reply

*

Text formatting is available via select HTML. <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>