---
title: "Percona MySQL quick setup"
date: "2012-11-05"
path: "/92-percona-mysql-quick-setup.html"
section: "/ramblings"
aliases:
  - "/92"
  - "/92-percona-mysql-quick-setup"
  - "/92.html"
  - "/ramblings/92-percona-mysql-quick-setup.html"
---

Get the additional keys so that your server will trust the percona repo:

```
gpg --keyserver hkp://keys.gnupg.net --recv-keys 1C4CBDCDCD2EFD2A
gpg -a --export CD2EFD2A | apt-key add -
```

Add this to /etc/apt/sources.list, replacing VERSION with the name of your distribution:

```
nano /etc/apt/sources.list
```

Add the following:

```
deb http://repo.percona.com/apt squeeze main
deb-src http://repo.percona.com/apt squeeze main
```

Remember to update the local cache:

```
apt-get update
```

After that you can install the server and client packages:

```
apt-get install percona-server-server-5.5 percona-server-client-5.5
```
