Skip to content

Install PMM Dump

Note

Starting from version 2.27.0, PMM Server is shipped with PMM Dump. Therefore you do not need to install it. To run this shipped version use the docker exec command as follows:

$ docker exec -it pmm-server pmm-dump help
usage: pmm-dump [<flags>] <command> [<args> ...]
...

Binary installation

You can download the latest version of PMM Dump from Percona website. Once downloaded, set executable bit for the pmm-dump binary file and you are ready to use it.

$ curl -OL https://www.percona.com/get/pmm-dump
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.9M    0 11.9M    0     0   624k      0 --:--:--  0:00:19 --:--:-- 2628k
$ chmod +x pmm-dump
$ ./pmm-dump version
Version: 0.6.1-rc, Build: e2bc9a9

Alternatively, you can download PMM Dump binary from PMM Dump GitHub Releases page. At this place you will find all published versions of PMM Dump.

Installing PMM Dump on ARM

Warning

ARM architecture is not officially supported. Binaries are not properly tested. Use them on your own risk.

ARM builds for Linux, MacOS, and Windows platforms are available at Percona-Lab/percona-on-arm.

Compiling from source

  1. Check if version of Go is 1.16 or newer.

    $ go version 
    go version go1.19.4 linux/amd64
    
  2. Clone PMM Dump GitHub repository:

    $ git clone git@github.com:percona/pmm-dump.git
    
  3. cd into the newly created directory and run make build:

    $ cd pmm-dump
    $ make build
    go build -ldflags "-X 'main.GitBranch=main' -X 'main.GitCommit=b3804a9' -X 'main.GitVersion=v2.32.0'" -o pmm-dump pmm-dump/cmd/pmm-dump
    

This will compile the pmm-dump binary.

Get expert help

If you need assistance, you can find comprehensive and free database knowledge on our community forum or blog posts. For professional support and services, contact our Percona Database Experts.