|
| 1 | +# Install Percona Server-based variant |
| 2 | + |
| 3 | +We gather [Telemetry data on Percona Server for MySQL](https://docs.percona.com/percona-server/8.4/telemetry.html) in the Percona packages and Docker images. |
| 4 | + |
| 5 | +## Prerequisites |
| 6 | + |
| 7 | +To install Percona software, you need to configure the required repository. To simplify this process, use the `percona-release` repository management tool. |
| 8 | + |
| 9 | +1. Install GnuPG and curl |
| 10 | + |
| 11 | + ```{.bash data-prompt="$"} |
| 12 | + $ sudo apt install gnupg2 curl |
| 13 | + ``` |
| 14 | + |
| 15 | +2. [Install percona-release](https://www.percona.com/doc/percona-repo-config/installing.html). If you have it installed, [update percona-release](https://www.percona.com/doc/percona-repo-config/updating.html) to the latest version. |
| 16 | + |
| 17 | +## Procedure |
| 18 | + |
| 19 | +=== "On Debian and Ubuntu Linux" |
| 20 | + |
| 21 | + !!! important |
| 22 | + |
| 23 | + Run the following commands as the root user or via `sudo`. |
| 24 | + |
| 25 | + ### Enable Percona repository |
| 26 | + |
| 27 | + To enable the desired repository, we recommend to use the `enable` subcommand of `percona-release`. |
| 28 | + |
| 29 | + ```{.bash data-prompt="$"} |
| 30 | + $ sudo percona-release enable {{majorpkg}} |
| 31 | + ``` |
| 32 | + |
| 33 | + !!! tip |
| 34 | + |
| 35 | + To enable the minor version repository, use the following command: |
| 36 | + |
| 37 | + ``` |
| 38 | + $ sudo percona-release enable {{minorpkg}} |
| 39 | + ``` |
| 40 | + |
| 41 | + ### Install Percona Distribution for MySQL packages |
| 42 | + |
| 43 | + 1. Install *Percona Server for MySQL*: |
| 44 | + |
| 45 | + ```{.bash data-prompt="$"} |
| 46 | + $ sudo apt install percona-server-server |
| 47 | + ``` |
| 48 | + |
| 49 | + 2. Install the components. Use the commands below to install the required components: |
| 50 | + |
| 51 | + Install Percona XtraBackup: |
| 52 | + |
| 53 | + ```{.bash data-prompt="$"} |
| 54 | + $ sudo apt install percona-xtrabackup-84 |
| 55 | + ``` |
| 56 | + |
| 57 | + Install Percona Toolkit: |
| 58 | + |
| 59 | + ```{.bash data-prompt="$"} |
| 60 | + $ sudo apt install percona-toolkit |
| 61 | + ``` |
| 62 | + |
| 63 | + Install Orchestrator: |
| 64 | + |
| 65 | + ```{.bash data-prompt="$"} |
| 66 | + $ sudo apt install percona-orchestrator percona-orchestrator-cli percona-orchestrator-client |
| 67 | + ``` |
| 68 | + |
| 69 | + Install MySQL Shell: |
| 70 | + |
| 71 | + ```{.bash data-prompt="$"} |
| 72 | + $ sudo apt install percona-mysql-shell |
| 73 | + ``` |
| 74 | + |
| 75 | + Install ProxySQL: |
| 76 | + |
| 77 | + ```{.bash data-prompt="$"} |
| 78 | + $ sudo apt install proxysql2 |
| 79 | + ``` |
| 80 | + |
| 81 | + Install MySQL Router: |
| 82 | + |
| 83 | + ```{.bash data-prompt="$"} |
| 84 | + $ sudo apt install percona-mysql-router |
| 85 | + ``` |
| 86 | + |
| 87 | +=== "On Red Hat Enterprise Linux and derivatives" |
| 88 | + |
| 89 | + !!! admonition "Platform specific notes" |
| 90 | + |
| 91 | + On CentOS 7, install the `epel-release` package. It includes the dependencies required to install Orchestrator. Use the following command: |
| 92 | + |
| 93 | + ```{.bash data-prompt="$"} |
| 94 | + $ sudo yum -y install epel-release |
| 95 | + ``` |
| 96 | + |
| 97 | + Run the following commands as the root user or via `sudo`. |
| 98 | + |
| 99 | + ### Enable Percona repository |
| 100 | + |
| 101 | + To enable the desired repository, we recommend to use the `enable` subcommand of `percona-release`. |
| 102 | + |
| 103 | + ```{.bash data-prompt="$"} |
| 104 | + $ sudo percona-release enable {{majorpkg}} |
| 105 | + ``` |
| 106 | + |
| 107 | + !!! tip |
| 108 | + |
| 109 | + To enable the minor version repository, use the following command: |
| 110 | + |
| 111 | + ```{.bash data-prompt="$"} |
| 112 | + $ sudo percona-release enable {{minorpkg}} |
| 113 | + ``` |
| 114 | + |
| 115 | + ### Install Percona Distribution for MySQL packages |
| 116 | + |
| 117 | + 1. Install *Percona Server for MySQL*: |
| 118 | + |
| 119 | + ```{.bash data-prompt="$"} |
| 120 | + $ sudo yum install percona-server-server |
| 121 | + ``` |
| 122 | + |
| 123 | + 2. Install the components. Use the commands below to install the required components: |
| 124 | + |
| 125 | + Install Percona XtraBackup |
| 126 | + |
| 127 | + ```{.bash data-prompt="$"} |
| 128 | + $ sudo yum install percona-xtrabackup-84 |
| 129 | + ``` |
| 130 | + |
| 131 | + Install Orchestrator |
| 132 | + |
| 133 | + ```{.bash data-prompt="$"} |
| 134 | + $ sudo yum install percona-orchestrator percona-orchestrator-cli percona-orchestrator-client |
| 135 | + ``` |
| 136 | + |
| 137 | + Install Percona Toolkit |
| 138 | + |
| 139 | + ```{.bash data-prompt="$"} |
| 140 | + $ sudo yum install percona-toolkit |
| 141 | + ``` |
| 142 | + |
| 143 | + Install MySQL Shell: |
| 144 | + |
| 145 | + ```{.bash data-prompt="$"} |
| 146 | + $ sudo yum install percona-mysql-shell |
| 147 | + ``` |
| 148 | + |
| 149 | + Install ProxySQL: |
| 150 | + |
| 151 | + ```{.bash data-prompt="$"} |
| 152 | + $ sudo yum install proxysql2 |
| 153 | + ``` |
| 154 | + |
| 155 | + Install MySQL Router: |
| 156 | + |
| 157 | + ```{.bash data-prompt="$"} |
| 158 | + $ sudo yum install percona-mysql-router |
| 159 | + ``` |
| 160 | + |
| 161 | +### Run Percona Distribution for MySQL |
| 162 | + |
| 163 | +Percona Distribution for MySQL is not started automatically on Red Hat Enterprise Linux and CentOS after the installation is complete. |
| 164 | + |
| 165 | +Start it manually using the following command: |
| 166 | + |
| 167 | +```{.bash data-prompt="$"} |
| 168 | +$ sudo systemctl start mysql |
| 169 | +``` |
| 170 | + |
| 171 | +Confirm that the service is running: |
| 172 | + |
| 173 | +```{.bash data-prompt="$"} |
| 174 | +$ sudo systemctl status mysql |
| 175 | +``` |
| 176 | + |
| 177 | +Stop the service: |
| 178 | + |
| 179 | +```{.bash data-prompt="$"} |
| 180 | +$ sudo systemctl stop mysql |
| 181 | +``` |
| 182 | + |
| 183 | +## Useful links |
| 184 | + |
| 185 | +[Percona Software Download Instructions](download-instructions.md) |
0 commit comments