Skip to content

Commit bc37dbe

Browse files
authored
Merge pull request #296 from percona/ps-9161-8
PS-9161 Update APT and YUM topics with more explanation - 8.0
2 parents 5b228b5 + 57cf05a commit bc37dbe

27 files changed

+301
-299
lines changed

docs/apt-download-deb.md

+55-33
Original file line numberDiff line numberDiff line change
@@ -1,45 +1,67 @@
11
# Install Percona Server for MySQL 8.0 using downloaded DEB packages
22

3+
When installing packages manually, you must resolve all the dependencies and install missing packages yourself. You must install the following packages before manually installing Percona Server:
4+
5+
* `mysql-common`
6+
7+
* `libjemalloc1`
8+
9+
* `libaio1`
10+
11+
* `libmecab2`.
12+
313
Download the packages from [Percona Product Downloads](https://www.percona.com/downloads). If needed, [Instructions for the Percona Product Download](download-instructions.md) are available.
414

5-
The following example downloads Percona Server for MySQL 8.0.31-23 release packages for Debian 10:
6-
7-
```{.bash data-prompt="$"}
8-
$ wget https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.31-23/binary/debian/buster/x86_64/Percona-Server-8.0.31-23-r71449379-buster-x86_64-bundle.tar
9-
```
10-
11-
Unpack the download to get the packages:
12-
13-
```{.bash data-prompt="$"}
14-
$ tar xvf Percona-Server-8.0.31-23-r71449379-buster-x86_64-bundle.tar
15-
```
16-
??? example "Expected output"
17-
18-
```text
19-
libperconaserverclient21_8.0.31-23-1.buster_amd64.deb
20-
libperconaserverclient21-dev_8.0.31-23-1.buster_amd64.deb
21-
percona-mysql-router_8.0.31-23-1.buster_amd64.deb
22-
percona-server-client_8.0.31-23-1.buster_amd64.deb
23-
percona-server-common_8.0.31-23-1.buster_amd64.deb
24-
percona-server-dbg_8.0.31-23-1.buster_amd64.deb
25-
percona-server-rocksdb_8.0.31-23-1.buster_amd64.deb
26-
percona-server-server_8.0.31-23-1.buster_amd64.deb
27-
percona-server-source_8.0.31-23-1.buster_amd64.deb
28-
percona-server-test_8.0.31-23-1.buster_amd64.deb
15+
1. The following example uses `Wget` to download the Percona Server 8.0 bundle from the specified URL. The bundle is a tar archive containing the Percona Server 8.0.31-23 binary for Debian Buster (x86_64 architecture):
16+
17+
```{.bash data-prompt="$"}
18+
$ wget https://downloads.percona.com/downloads/Percona-Server-8.0/Percona-Server-8.0.31-23/binary/debian/buster/x86_64/Percona-Server-8.0.31-23-r71449379-buster-x86_64-bundle.tar
2919
```
3020

31-
Install Percona Server for MySQL using `dpkg`. Run this command as root or use the sudo command:
21+
2. The command line instruction uses the `tar` command to extract files from a tarball (a type of compressed file). The `tar` command is a Unix utility that stores and extracts files from an archive file known as a tarfile.
22+
23+
The `xvf` option combines three separate options: `x`, `v`, and `f`.
24+
25+
* `x` extract the files from the archive
3226

33-
```{.bash data-prompt="$"}
34-
$ sudo dpkg -i *.deb
35-
```
27+
* `v` verbose - print the file names as they are extracted
3628

37-
!!! note
29+
* `f` file - use the following argument as the name of the archive file
3830

39-
Percona Server for MySQL 8.0 comes with the TokuDB storage engine. You can find more information on how to install and enable the TokuDB storage in the TokuDB Installation guide.
31+
The following command extracts the contents of the `Percona-Server-8.0.31-23-r71449379-buster-x86_64-bundle.tar` file and prints the file names.
32+
33+
```{.bash data-prompt="$"}
34+
$ tar xvf Percona-Server-8.0.31-23-r71449379-buster-x86_64-bundle.tar
35+
```
36+
37+
??? example "Expected output"
38+
39+
```text
40+
libperconaserverclient21_8.0.31-23-1.buster_amd64.deb
41+
libperconaserverclient21-dev_8.0.31-23-1.buster_amd64.deb
42+
percona-mysql-router_8.0.31-23-1.buster_amd64.deb
43+
percona-server-client_8.0.31-23-1.buster_amd64.deb
44+
percona-server-common_8.0.31-23-1.buster_amd64.deb
45+
percona-server-dbg_8.0.31-23-1.buster_amd64.deb
46+
percona-server-rocksdb_8.0.31-23-1.buster_amd64.deb
47+
percona-server-server_8.0.31-23-1.buster_amd64.deb
48+
percona-server-source_8.0.31-23-1.buster_amd64.deb
49+
percona-server-test_8.0.31-23-1.buster_amd64.deb
50+
```
51+
52+
3. Install Percona Server for MySQL using the `dpkg` utility to install Debian (.deb) packages. The installation requires either root or the `sudo` command. `sudo` allows you to run programs with the security privileges of another user, usually as the superuser.
53+
54+
`dpkg` is a package manager for Debian-based systems and can install, remove, and provide information about `.deb` packages.
55+
56+
The `-i` option tells `dpkg` to install the package.
57+
58+
The `*.deb` is a wildcard that matches any file in the current directory that ends with the `.deb` extension.
59+
60+
61+
```{.bash data-prompt="$"}
62+
$ sudo dpkg -i *.deb
63+
```
4064

41-
Starting with Percona Server for MySQL 8.0.28-19 (2022-05-12), the TokuDB storage engine is no longer supported. We have removed the storage engine from the installation packages and disabled the storage engine in our binary builds. For more information, see the TokuDB Introduction.
65+
Starting with Percona Server for MySQL 8.0.28-19 (2022-05-12), the TokuDB storage engine is no longer supported. For more information, see the [TokuDB Introduction](tokudb-intro.md) and [TokuDB changes by Percona Server for MySQL version](tokudb-version-changes.md).
4266

43-
!!! warning
4467

45-
When installing packages manually like this, you’ll need to resolve all the dependencies and install missing packages yourself. The following packages will need to be installed before you can manually install Percona Server: `mysql-common`, `libjemalloc1`, `libaio1`, and `libmecab2`.

docs/apt-pinning.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,22 @@
11
# Apt pinning the Percona Server for MySQL 8.0 packages
22

3-
Pinning allows you to stay on a release and get packages from a different version. In some cases, you can pin selected packages and avoid accidentally upgrading all the packages.
3+
Apt pinning is a feature in Debian and its derivatives like Ubuntu, allowing you to prioritize package versions from different repositories. When you pin the Percona Server for MySQL 8.0 packages, you tell your system's package manager to prefer this specific version over others available in different repositories. This ability is beneficial when you want to ensure that you're running a specific version of Percona Server for MySQL due to compatibility or stability reasons, despite newer versions available elsewhere.
44

5+
To apt pin Percona Server for MySQL 8.0, you must first open the `/etc/apt/preferences.d/` directory and create a new file for the Percona Server package. In this file, you will specify the package name followed by a pinning priority. A higher priority ensures that the version of Percona Server you wish to install is preferred over other versions.
6+
7+
You should include the version number of the Percona Server in the 'Package' field to identify the package.
8+
9+
Then, assign a priority in the 'Pin-Priority' field; a common practice is to set it above 1000 to prioritize it over other packages.
510
The pinning takes place in the `preference` file. To pin a package, set the `Pin-Priority` to higher numbers.
611

712
Make a new file `/etc/apt/preferences.d/00percona.pref`. For example, add the following to the `preference` file:
813

9-
```text
14+
```{.text .no-copy}
1015
Package:
1116
Pin: release o=Percona Development Team
1217
Pin-Priority: 1001
1318
```
1419

15-
For more information about the pinning, you can check the official [debian wiki](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).
20+
Save this file and update your package lists with `sudo apt update`. Finally, install Percona Server for MySQL 8.0 with `sudo apt install percona-server-server-8.0`, and apt will adhere to your pinning preferences.
21+
22+
For more information, see [debian wiki on AptConfiguration](https://wiki.debian.org/AptConfiguration?action=show&redirect=AptPreferences).

docs/apt-repo.md

+23-13
Original file line numberDiff line numberDiff line change
@@ -9,56 +9,67 @@ We gather [Telemetry data] in the Percona packages and Docker images.
99

1010
## Install Percona Server for MySQL using APT
1111

12-
1. Update the package repositories:
12+
1. This command line instruction uses the `apt` command to update the package lists for upgrades and new package installations.
13+
14+
* `sudo` is a command that allows you to run programs with the security privileges of another user, by default, as the superuser. Updating the package lists typically requires superuser or 'root' privileges.
15+
16+
* `apt` is a command-line interface that handles package management in Debian and its derivatives.
17+
18+
* `update` option resynchronizes the package index files from the sources specified in the system's `sources.list` file. You should run this command regularly to get the latest package updates.
19+
1320

1421
```{.bash data-prompt="$"}
1522
$ sudo apt update
1623
```
1724

18-
2. Install the `curl` download utility if needed:
25+
2. This command line instruction uses superuser privileges to install the `curl` package using the `apt` package manager. `curl` is a command-line tool used to transfer data using various network protocols.
1926

2027
```{.bash data-prompt="$"}
2128
$ sudo apt install curl
2229
```
2330

24-
3. Download the `percona-release` repository package:
31+
3. This command line instruction uses `curl` to download the `percona-release_latest.generic_all.deb` file from the `https://repo.percona.com/apt` location.
32+
33+
The `-0` option saves the downloaded file with the same name used in the URL.
2534

2635
```{.bash data-prompt="$"}
2736
$ curl -O https://repo.percona.com/apt/percona-release_latest.generic_all.deb
2837
```
2938

30-
4. Install the downloaded package with `apt` as root or with sudo:
39+
4. The following command uses the `apt` command to install multiple packages. `gnupg2` is the GNU Privacy Guard that provides cryptographic privacy and authentication. `lsb-release` is a Linux utility that provides certain Linux Standard Base (LSB) and distribution-specific information. `./percona-release_latest.generic_all.deb` is a Debian package in the current directory.
40+
3141

3242
```{.bash data-prompt="$"}
3343
$ sudo apt install gnupg2 lsb-release ./percona-release_latest.generic_all.deb
3444
```
3545

3646

37-
5. Refresh the local cache to update the package information:
47+
5. The following command uses superuser privileges to update the package lists from the repositories so that the system knows about the latest versions of packages and their dependencies.
3848

3949
```{.bash data-prompt="$"}
4050
$ sudo apt update
4151
```
4252

43-
6. Use `percona-release` to set up the repository for the Percona Server for MySQL 8.0 version:
53+
6. This command line instruction uses `percona-release` command, a tool provided by Percona, to set up a specific Percona Server version.
4454

4555
```{.bash data-prompt="$"}
4656
$ sudo percona-release setup ps80
4757
```
4858

49-
7. You can check the repository setup for the Percona original release list in `/etc/apt/sources.list.d/percona-original-release.list`.
59+
7. You can check the repository setup for the Percona original release list in `/etc/apt/sources.list.d/percona-original-release.list`. The APT system uses this file to know where to find updates and new packages for Percona software.
5060

51-
8. Install the server package with the `percona-release` command:
61+
8. This command uses the `apt` command to install the `percona-server-server` package.
5262

5363
```{.bash data-prompt="$"}
5464
$ sudo apt install percona-server-server
5565
```
5666

5767
See [Configuring Percona repositories with `percona-release`](https://docs.percona.com/percona-software-repositories/percona-release.html) for more information.
5868

59-
--8<--- "storage-engines.md"
6069

61-
Percona Server for MySQL contains user-defined functions from [Percona Toolkit](https://docs.percona.com/percona-toolkit/). These user-defined functions provide faster checksums. For more details on the user-defined functions, see [Percona Toolkit UDF functions](https://www.percona.com/doc/percona-server/8.0/management/udf_percona_toolkit.html).
70+
Starting with Percona Server for MySQL 8.0.28-19 (2022-05-12), the TokuDB storage engine is no longer supported. For more information, see the [TokuDB Introduction](tokudb-intro.md) and [TokuDB version changes](tokudb-version-changes.md).
71+
72+
Percona Server for MySQL contains user-defined functions from the [Percona Toolkit](https://docs.percona.com/percona-toolkit/). These user-defined functions provide faster checksums. For more details on the user-defined functions, see [Percona Toolkit UDF functions](udf-percona-toolkit.md).
6273

6374
After the installation completes, run the following commands to create these functions:
6475

@@ -70,13 +81,12 @@ mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"
7081

7182
## Install the Percona Testing repository using APT
7283

73-
Percona offers pre-release builds from the testing repository. To enable it, run
74-
percona-release with the `testing` argument. Run the following command as root or use the sudo command:
84+
Percona offers pre-release builds from the testing repository. As a superuser, run `percona-release` with the `testing` argument to enable it.
7585

7686
```{.bash data-prompt="$"}
7787
$ sudo percona-release enable ps80 testing
7888
```
7989

80-
These builds should not be run in production. This build may not contain all of the features available in the final release. The features may change without notice.
90+
Do not run testing repository builds in production. The build may not contain all the features available in the final release and may change without notice.
8191

8292
[Telemetry data]: telemetry.md

docs/apt-uninstall-server.md

+33-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,39 @@
11
# Uninstall Percona Server for MySQL 8.0 using the APT package manager
22

3-
To uninstall Percona Server for MySQL you’ll need to remove all the installed
4-
packages. Removing packages with apt remove does not remove the
5-
configuration and data files. Removing the packages with apt purge does remove the packages with configuration files and data files (all
6-
the databases). Depending on your needs you can choose which command better
7-
suits you.
3+
To uninstall Percona Server for MySQL, you must remove all the installed
4+
packages. Removing packages with `apt remove` does not remove the
5+
configuration and data files. Removing the packages with `apt purge` does remove the packages with configuration files and data files (all the databases). Depending on your needs, you can choose which command best suits you.
86

9-
1. Stop the Percona Server for MySQL service: `service mysql stop`
7+
1. To uninstall Percona Server for MySQL, you must stop the Percona Server for MySQL service:
108

11-
2. Remove the packages
9+
```{.bash data-prompt="$"}
10+
$ sudo systemctl stop mysql
11+
```
1212

13-
1. Remove the packages. This will leave the data files (databases, tables, logs, configuration, etc.) behind. In case you don’t need them you’ll need to remove them manually: `apt remove percona-server\`
13+
2. Remove the Percona Server for MySQL packages. You can use either command.
14+
15+
a. The command, `apt remove` removes only the packages. This operation does not remove the data files (databases, tables, logs, configuration, and other files).
16+
```{.bash data-prompt="$"}
17+
$ sudo apt remove percona-server\
18+
```
19+
20+
If you do not need these remaining files, remove them manually.
21+
22+
b. This command removes all the packages and any associated configuration files. This action ensures the complete removal of the packages from the system.
23+
24+
```{.bash data-prompt="$"}
25+
$ sudo apt purge percona-server\`
26+
```
27+
28+
3. To ensure associated packages are removed, run the following command:
29+
30+
```{.bash data-prompt="$"}
31+
$ sudo apt autoremove
32+
```
33+
34+
4. You can manually remove the data directory by executing the following command. Back up any of the necessary data before deleting the files.
35+
36+
```{.bash data-prompt="$"}
37+
$ sudo rm -rf /var/lib/mysql/
38+
```
1439

15-
2. Purge the packages. This command removes all the packages and deletes all the data files (databases, tables, logs, and so on.): `apt purge percona-server\`

docs/fast-updates.md

+1-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
# Fast updates with TokuDB
22

3-
!!! important
3+
Starting with Percona Server for MySQL 8.0.28-19 (2022-05-12), the TokuDB storage engine is no longer supported. For more information, see the [TokuDB Introduction](tokudb-intro.md) and [TokuDB version changes](tokudb-version-changes.md).
44

5-
Starting with [Percona Server for MySQL 8.0.28-19](release-notes/Percona-Server-8.0.28-19.md), the TokuDB storage engine is no longer supported. We have removed the storage engine from the installation packages and disabled the storage engine in our binary builds.
6-
7-
Starting with [Percona Server for MySQL 8.0.26-16](release-notes/Percona-Server-8.0.26-16.md), the binary builds and packages include but disable the TokuDB storage engine plugins. The tokudb_enabled option and the tokudb_backup_enabled option control the state of the plugins and have a default setting of FALSE. The result of attempting to load the plugins are the plugins fail to initialize and print a deprecation message.
8-
9-
We recommend [Migrating the data to the MyRocks storage engine](https://docs.percona.com/percona-server/latest/tokudb/removing_tokudb.html#migrate-myrocks). To enable the plugins to migrate to another storage engine, set the tokudb_enabled and tokudb_backup_enabled options to TRUE in your my.cnf file and restart your server instance. Then, you can load the plugins.
10-
11-
The TokuDB storage engine was declared as deprecated in [Percona Server for MySQL 8.0](release-notes/Percona-Server-8.0.13-3.md). For more information, see the Percona blog post: [Heads-Up: TokuDB Support Changes and Future Removal from Percona Server for MySQL 8.0](https://www.percona.com/blog/2021/05/21/tokudb-support-changes-and-future-removal-from-percona-server-for-mysql-8-0/).
125

136
## Introduction
147

docs/installation.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
# Install Percona Server for MySQL
22

3-
Before installing, review the [Percona Server for MySQL 8.0 Release notes](release-notes/release-notes_index.md) for your version.
3+
Before installing, review the [Percona Server for MySQL 8.0 Release notes](release-notes/release-notes_index.md).
44

55
We gather [Telemetry data] in the Percona packages and Docker images.
66

7-
We recommend using the repositories that Percona provides to simplify the installation process. The percona-release tool makes it easy to install and update your software and its dependencies using your operating system package manager.
7+
We recommend using the repositories that Percona provides to simplify the installation process. The `percona-release` tool makes installing and updating your software and its dependencies easy using your operating system package manager. The Percona Software repositories contain YUM (`RPM` packages for Red Hat Enterprise Linux and derivatives) and APT (`DEB` packages for Ubuntu and Debian) for Percona software such as Percona Server for MySQL, Percona XtraBackup, and Percona Toolkit.
88

9-
The Percona Software repositories contain YUM (`RPM` packages for Red Hat Enterprise Linux and derivatives) and APT (`DEB` packages for Ubuntu and Debian) for Percona software such as Percona Server for MySQL, Percona XtraBackup, and Percona Toolkit.
9+
For more information, see [Percona Software repositories and the percona-release tool].
1010

11-
For more information see, [Percona Software repositories and the percona-release tool].
11+
To get started quickly, use the [Quickstart guide]. You can find instructions for either Docker or installing with a package manager.
1212

13-
To get started quickly, use the [Quickstart guide].You can find instructions to either use Docker or install Percona Server for MySQL using your package manager.
14-
15-
The following guides describe the installation procedures for using the official Percona Software repositories for either the `.deb` and `.rpm` packages.
13+
The following guides describe the installation procedures for using the official Percona Software repositories.
1614

1715
* [Install Percona Server for MySQL on Debian and Ubuntu](apt-repo.md)
1816

0 commit comments

Comments
 (0)