Compiling Percona Server for MySQL 5.7 from Source¶
Note
The following instructions compile Percona Server for MySQL 5.7. The instructions on how to compile Percona Server for MySQL 8.0 are available at this location.
After either fetching the source repository or extracting a source tarball (from Percona or one you generated yourself), you must configure and build Percona Server. Do the following:
-
Run
cmake
to configure the build. Specify the build options like you would for a MySQL build. You may require other options on your sever.This example configures Percona Server for MySQL with similar options to what Percona uses to produce the binaries:
$ cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_EMBEDDED_SERVER=OFF
-
compile using
make
:$ make
-
install the compiled file:
Percona Server 5.7 is installed on your system.$ make install
Last update:
2022-09-27