Sei sulla pagina 1di 3

percona server installation

Short description:

Percona Server for MySQL is a distribution of the MySQL relational database management
system created by Percona. Percona Server for MySQL is an open source relational database
management system. It is a free, fully compatible drop in replacement for Oracle MySQL.

Installation procedure

1.Running PMM Server via Docker

Docker images of PMM Server are stored at the percona/pmm-server public repository. The
host must be able to run Docker 1.12.6 or later, and have network access.

Creating the pmm-data Container


docker create \
-v /opt/prometheus/data \
-v /opt/consul-data \
-v /var/lib/mysql \
-v /var/lib/grafana \
--name pmm-data \
percona/pmm-server:latest /bin/true

Creating and Launching the PMM Server Container


docker run -d \
-p 80:80 \
--volumes-from pmm-data \
--name pmm-server \
--restart always \
percona/pmm-server:latest

Installing Clients
1.Percona Software Repositories

● Repository on Debian and Ubuntu


1. Fetch the repository package:
2. wget https://repo.percona.com/apt/percona-release_0.1-6.$(lsb_release -sc)_all.deb

3. Install the repository package:


4. sudo dpkg -i percona-release_0.1-6.$(lsb_release -sc)_all.deb

5. Update local apt cache:


6. sudo apt-get update
7.
● Repository on Red Hat Enterprise Linux and CentOS
Install the repository package:
sudo yum install http://www.percona.com/downloads/percona-release/redhat/0.1-6/percona-
release-0.1-6.noarch.rpm

You should see the following if successful:


Installed:
percona-release.noarch 0:0.1-6

Complete!

2 .Installing PMM Client on Debian or Ubuntu

1. install the PMM Client package:


apt-get install pmm-client

3. Installing the PMM Client Package on Red Hat and CentOS

1. Install the pmm-client package:


yum install pmm-client

● Run this command as root or by using the sudo command


pmm-admin config --server 192.168.5.106:8500 --client-name “client name”

● Enable general system metrics, MySQL metrics, MySQL query analytics:


pmm-admin add mysql --user “username” --password “password”

● Enable general system metrics, MongoDB metrics, and MongoDB query analytics:
pmm-admin add mongodb

● Enable ProxySQL performance metrics:


pmm-admin add proxysql:metrics [NAME] [OPTIONS]

● Enable PostgreSQL performance metrics:


pmm-admin add postgresql --user “username” --password “password”

Potrebbero piacerti anche