Use an APT repository to install Percona Server for MySQL 9.7¶
Percona Server for MySQL packages are available from the software repositories and from the Percona downloads page.
The Percona Software and Platform Lifecycle page lists supported platforms, products, and versions. Debian (DEB) packages support arm64 and other architectures on documented Debian and Ubuntu releases.
The percona-release tool is a command-line utility that simplifies the management and installation of Percona software packages, providing access to the latest versions and ensuring consistency across environments. For more information, refer to the Percona Software Repositories Documentation.
We gather Telemetry data in the Percona packages and Docker images.
Review Get help from Percona for ways that we can work with you.
Install Percona Server for MySQL using APT¶
Install Percona Server on Debian or Ubuntu with the following steps:
-
Copy the command block in the following section. Run the commands in order.
-
Use Configure authentication when the package manager prompts for authentication options.
-
Open Next steps after the server packages install.
-
Expand the
Step-by-step: what each command doesnote for an explanation of each command. -
For scripted automation, see Non-interactive APT installation for Percona Server for MySQL 9.7.
Run the commands as the root user or with sudo:
sudo apt update
sudo apt install -y curl
curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
sudo apt install -y gnupg2 lsb-release ./percona-release_latest.generic_all.deb
sudo percona-release setup ps-97-lts --scheme https
sudo percona-release enable ps-97-lts release --scheme https
sudo apt update
sudo apt install -y percona-server-server
The command sequence matches Install Percona Server for MySQL and create a database on Ubuntu. The quickstart includes steps 1 through 6. The quickstart passes --scheme https to percona-release setup and enable. The repository identifier for 9.7 is ps-97-lts.
For another Percona Server for MySQL series, run sudo percona-release list or see the MySQL software repositories reference. Percona can change published repository names when Percona adds a series.
percona-release flag: --scheme
The examples on this topic pass --scheme https. Repository URLs in APT source lists then use HTTPS. The Percona Software Repositories — percona-release reference documents the --scheme flag. Supported values are HTTP and HTTPS. Without --scheme, percona-release uses HTTP URLs by default.
You can pass --scheme https to subcommands such as setup, enable, enable-only, or disable. Use the same pattern as the examples. See the linked reference for all commands.
Percona Server for MySQL 9.7 uses the MySQL 9.x authentication model in the MySQL 9.6 documentation. Key behaviors include the following:
- MySQL 9.x removes the
mysql_native_passwordplugin on {{vers}}. The server has no--mysql-native-password=ON,mysql_native_password=ON, or other way to load the plugin. - The
default_authentication_pluginsystem variable is unavailable in MySQL 9.x. - Password-based accounts use the
caching_sha2_passwordplugin by default. - Applications and drivers must support
caching_sha2_password. - TLS is optional unless a security policy or deployment mandates encrypted traffic. The
caching_sha2_passwordplugin works without TLS for some connection types.
When the package manager prompts during installation, follow Configure authentication. Prompts depend on the package and distribution.
Step-by-step: what each command does
Each step includes a short explanation:
-
apt updaterefreshes package lists for upgrades and installs.sudoruns the command with superuser privileges. The command reads sources in/etc/apt/sources.listand/etc/apt/sources.list.d/.sudo apt update -
sudo apt install -y curlinstalls thecurlpackage.curltransfers data over the network. You needcurlto download the Percona repository package.sudo apt install -y curl -
curl -Odownloadspercona-release_latest.generic_all.debfrom the Percona APT repository. The-Ooption saves the file with the URL filename.curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb -
The next command installs
gnupg2,lsb-release, and the Percona release package.gnupg2verifies package signatures.lsb-releasereports distribution information. Together with the.debfile, these packages configure the Percona APT repository.sudo apt install -y gnupg2 lsb-release ./percona-release_latest.generic_all.deb -
percona-release setup ps-97-lts --scheme httpsdisables current Percona repositories. The command enables release repositories for Percona Server for MySQL 9.7 over HTTPS. See the Percona Software Repositories reference. Omit--scheme httpsonly when you need HTTP repository URLs.sudo percona-release setup ps-97-lts --scheme https -
percona-release enable ps-97-lts release --scheme httpsenables the Percona Server for MySQL release repository with HTTPS URLs. Runapt updatenext so APT loads indexes forpercona-server-serverand related packages.sudo percona-release enable ps-97-lts release --scheme https sudo apt update -
Confirm repository configuration in
.listfiles under/etc/apt/sources.list.d/. The filename, such aspercona-original-release.list, depends on thepercona-releaseversion. -
sudo apt install -y percona-server-serverinstalls the server package. The package manager can prompt for values such as therootpassword. Some builds use debconf or post-install configuration only. For password prompts and automation, see Non-interactive APT installation for Percona Server for MySQL 9.7. For authentication defaults and removed plugins, see Configure authentication.sudo apt install -y percona-server-server
Configure authentication¶
The package manager can prompt for passwords and other options during installation. Change authentication after installation when the package skips prompts. For automation, see Non-interactive APT installation for Percona Server for MySQL 9.7.
Important change in 9.7
MySQL 9.x and {{vers}} remove the mysql_native_password plugin. The default_authentication_plugin system variable is unavailable. Password-based accounts use caching_sha2_password by default. MySQL 9.x has no server-side option to re-enable native-password authentication.
For a migration from native password authentication, update accounts and clients before you deploy 9.7. See Authentication methods and Upgrade checklist for 9.7.
On 9.7, the server uses the caching_sha2_password plugin for password authentication. Client libraries and connectors must support caching_sha2_password. Use TLS when your policy requires encrypted connections. The default caching_sha2_password configuration needs no extra server settings.
See Configuring Percona repositories with percona-release for repository commands.
Percona Server for MySQL 9.7.x comes with the MyRocks storage engine. This storage engine is installed as a plugin. For information on installing and configuring MyRocks, refer to the Percona MyRocks Installation Guide.
Next steps¶
After installation, see Post-installation to configure and secure the server.
Related installation topics¶
-
Non-interactive APT installation for Percona Server for MySQL 9.7: debconf preseed, unattended installs, and
DEBIAN_FRONTEND=noninteractive -
Optional steps after repository install for Percona Server for MySQL 9.7: Percona Toolkit UDFs and the testing repository