|
| 1 | +# Install Percona XtraDB Cluster Pro on Amazon Linux 2023 |
| 2 | + |
| 3 | +--8<--- "pro-build-announcement.md" |
| 4 | + |
| 5 | +This document provides guidelines how to install Pro packages of Percona XtraDB ClusterL from Percona repositories. [Check files in packages built for Percona XtraDB Cluster Pro :material-arrow-right:](pro-files.md){.md-button} |
| 6 | + |
| 7 | +!!! note |
| 8 | + |
| 9 | + Starting with Percona XtraDB Cluster 8.4.4-4 Pro build is available for Amazon Linux 2023 (AL2023) platform. We support both AMD64 and ARM64 versions of Amazon Linux 2023. |
| 10 | + |
| 11 | +## Prerequisites |
| 12 | + |
| 13 | +* You need to have root access on the node where you will be installing Percona XtraDB Cluster (either logged in as a user with root privileges or be able to run commands with sudo). |
| 14 | + |
| 15 | +* Make sure that the following ports are not blocked by firewall or used by other software. Percona XtraDB Cluster requires them for communication. |
| 16 | + |
| 17 | + * 3306 |
| 18 | + |
| 19 | + |
| 20 | + * 4444 |
| 21 | + |
| 22 | + |
| 23 | + * 4567 |
| 24 | + |
| 25 | + |
| 26 | + * 4568 |
| 27 | + |
| 28 | +!!! admonition "See also" |
| 29 | + |
| 30 | + For more information, see [Enabling AppArmor](apparmor.md#apparmor). |
| 31 | + |
| 32 | +## Procedure |
| 33 | + |
| 34 | +1. Request the access to the pro repository from Percona Support. You will receive the client ID and the access token which you use when downloading the packages. |
| 35 | + |
| 36 | +2. Configure the repository and install Percona XtraDB Cluster packages |
| 37 | + |
| 38 | + ```{.bash data-prompt="$"} |
| 39 | + $ sudo yum install https://repo.percona.com/yum/percona-release-latest.noarch.rpm |
| 40 | + $ sudo percona-release setup pxc-80-pro --user_name=<Your PRO repository user name> --repo_token=<Your PRO repository token> |
| 41 | + $ sudo yum install percona-xtradb-cluster-pro-80 |
| 42 | + ``` |
| 43 | + |
| 44 | +## After installation |
| 45 | + |
| 46 | +After the installation, start the `mysql` service and find the temporary password using the `grep` command. |
| 47 | + |
| 48 | +```{.bash data-prompt="$"} |
| 49 | +$ sudo service mysql start |
| 50 | +$ sudo grep 'temporary password' /var/log/mysqld.log |
| 51 | +``` |
| 52 | + |
| 53 | +Use the temporary password to log into the server: |
| 54 | + |
| 55 | +```{.bash data-prompt="$"} |
| 56 | +$ mysql -u root -p |
| 57 | +``` |
| 58 | + |
| 59 | +Run an `ALTER USER` statement to change the temporary password, exit the client, and stop the service. |
| 60 | + |
| 61 | +```{.bash data-prompt="$"} |
| 62 | +mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'rootPass'; |
| 63 | +mysql> exit |
| 64 | +$ sudo service mysql stop |
| 65 | +``` |
| 66 | + |
0 commit comments