Install Percona Server for MySQL 8.0 from a binary tarball¶
A binary tarball contains a group of files, including the server binaries and support files, bundled together into one file using the tar command and compressed using gzip.
See the list of binary tarballs available based on the Percona Server for MySQL version to select the right tarball for your environment.
You can download the binary tarballs from the Linux - Generic section on the download page.
Fetch and extract the correct binary tarball. For example, for Ubuntu 22.04:
Download the tarball:
wget https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.45-36/binary/tarball/Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35.tar.gz
Expected output
--2024-01-15 10:00:00-- https://downloads.percona.com/...
Saving to: 'Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35.tar.gz'
Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35.tar.gz 100%[=================>] xxx MB xx.x MB/s in xx s
2024-01-15 10:00:xx (xx.x MB/s) - 'Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35.tar.gz' saved [xxxxxx/xxxxxx]
Extract the tarball:
tar -xzf Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35.tar.gz
Expected output
(No output on success.)
Change into the extracted directory:
cd Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35
Expected output
(No output on success.)
After extraction¶
The tarball does not start the server for you. To run Percona Server you must:
-
Initialize the data directory (once) using the server executable
bin/mysqldwith--initializeor--initialize-insecure. -
Start the server (for example with
bin/mysqld_safeor by configuring a systemd service).
The server executable is bin/mysqld inside the extracted directory. Do not run it for normal operation until the data directory has been initialized.
For step-by-step instructions (including creating a data directory, initializing it, starting the server, and optional boot-time setup), see Post-installation. If you did not install under /usr/local/mysql, use your extraction directory instead (for example, cd /path/to/Percona-Server-8.0.45-36-Linux.x86_64.glibc2.35 then bin/mysqld --initialize).