编译percona-server-locks-detail-5.7.22
Posted dataart
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了编译percona-server-locks-detail-5.7.22相关的知识,希望对你有一定的参考价值。
yum install -y binutils compat-libstdc++ gcc gcc-c++ glibc glibc-devel ksh libaio libaio-devel libgcc libstdc++ libstdc++-devel libXext libXtst libX11 libXau libXi make sysstat
shell> mkdir bld
shell> cd bld
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/local/mysql
-DMYSQL_DATADIR=/data/percona/mysql
-DSYSCONFDIR=/etc
-DMYSQL_TCP_PORT=3306
-DMYSQL_UNIX_ADDR=/data/percona/mysql/mysql.sock
-DWITH_INNOBASE_STORAGE_ENGINE=1
-DWITH_ARCHIVE_STORAGE_ENGINE=1
-DWITH_BLACKHOLE_STORAGE_ENGINE=1
-DWITH_FEDERATED_STORAGE_ENGINE=1
-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1
-DDEFAULT_CHARSET=utf8mb4
-DDEFAULT_COLLATION=utf8mb4_general_ci
-DDOWNLOAD_BOOST=1
-DWITH_BOOST=/usr/local/boost
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> mkdir mysql-files
shell> chown mysql:mysql mysql-files
shell> chmod 750 mysql-files
shell> bin/mysqld --initialize --user=mysql
shell> bin/mysql_ssl_rsa_setup
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysql.server
https://github.com/gaopengcarl/percona-server-locks-detail-5.7.22
以上是关于编译percona-server-locks-detail-5.7.22的主要内容,如果未能解决你的问题,请参考以下文章
Linux——Linux驱动之Makefile编译总结(编译器路径设置编译流程分析编译试验测试)