Hướng dẫn cài đặt mysql percona từ cmake

Percona uses the Github revision control system for development. To build the latest Percona Server for MySQL from the source tree, you will need git installed on your system.

You can now fetch the latest Percona Server for MySQL 8.0 sources.

$ git clone //github.com/percona/percona-server.git $ cd percona-server $ git checkout 8.0 $ git submodule init $ git submodule update

If you are going to be making changes to Percona Server for MySQL 8.0 and wanting to distribute the resulting work, you can generate a new source tarball [exactly the same way as we do for release]:

After either fetching the source repository or extracting a source tarball [from Percona or one you generated yourself], you will now need to configure and build Percona Server for MySQL.

First, run CMake to configure the build. Here you can specify all the normal build options as you do for a normal MySQL build. Depending on what options you wish to compile Percona Server for MySQL with, you may need other libraries installed on your system. Here is an example using a configure line similar to the options that Percona uses to produce binaries:

$ cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community

Compile from source

Now, compile using make:

Install:

Percona Server for MySQL 8.0 is installed on your system.

Get expert help

If you need assistance, visit the community forum for comprehensive and free database knowledge, or contact our Percona Database Experts for professional support and services.

Last update: 2023-09-27

Was this page helpful?

Thank you for your feedback! Help us improve by following this feedback form.

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:

Chủ Đề