[Repost] CentOS ARM compile and install MYSQL

Software introduction

 

https: // www.huaweicloud.com/kunpeng/software/mysql.htmlHuawei's 

Euler is also changed by centos ..

 

MySQL is a relational database management system.

 

Supported operating system

l After rigorous testing by Huawei Cloud, the following operating systems can run all functions of MySQL service in Kunpeng Ecosystem:

- CentOS7.5

−           Euler 2.8

Support version and acquisition method

l   MySQL 5.6

Compile and test methods

In this paper, the Huawei Kunpeng Cloud Service ECS KC1 instance is selected for testing. The processor of the KC1 instance is Kunpeng 920 compatible with the ARMv8 instruction set and supports 2 cores / 4 cores.

1. Operating system selection

The operating system used is Euler 2.8, and the kernel version number is: 4.19.36.

2. Get the source code

The source code compression package of the mysql community version is available on github ( https://github.com/mysql/mysql-server ), which can be downloaded directly. The list of each version can be passed:

https://github.com/mysql/mysql-server/releases get

3. Compile environment configuration

l Install dependent packages:

yum install gcc gcc-c++ make cmake libaio-devel openssl-devel zlib-devel ncurses-devel bison -y

l Download and unzip boost:

mkdir /usr/local/src/boost && cd  /usr/local/src/boost

wget -c https://kent.dl.sourceforge.net/project/boost/boost/1.59.0/boost_1_59_0.tar.gz --no-check-certificate
tar -zxvf boost_1_59_0.tar.gz

4. Compile the source code

l Download the mysql-5.6.44 source code and unzip it:

mkdir /usr/local/src/mysql && cd  /usr/local/src/mysql

wget -c https://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.44.tar.gz 
tar -zxvf mysql-5.6.44.tar.gz

l Enter the MySQL decompression directory, build the compilation directory and enter the compilation directory:

cd /usr/local/src/mysql/mysql-5.6.44 && mkdir build && cd build

l Configuration:

mkdir /usr/local/mysql

cmake /usr/local/src/mysql/mysql-5.6.44  -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DWITH_BOOST=/usr/local/src/boost/boost_1_59_0

Compile and install:

make 
make install

5. Test the compiled software

l Version check. If the installation is successful, the version will be displayed correctly.

/usr/local/mysql/bin/mysql --version

Summary of known issues

l Question 1: On aarch64, mysql will generate a deadlock during the stress test, which will cause the service to be unavailable and unable to heal itself. https://bugs.mysql.com/bug.php?id=94699&contribs=1 .

Guess you like

Origin www.cnblogs.com/jinanxiaolaohu/p/12684957.html