percona-server-5.7二进制安装(tokudb)

percona-server-5.7二进制安装(tokudb)

1、下载二进制安装包(适用于红帽、centos)

https://www.percona.com/downloads/Percona-Server-LATEST/Percona-Server-5.7.21-20/binary/tarball/Percona-Server-5.7.21-20-Linux.x86_64.ssl101.tar.gz

2、解压。

tar -zxf Percona-Server-5.7.21-20-Linux.x86_64.ssl101.tar.gz

mv Percona-Server-5.7.21-20-Linux.x86_64.ssl101 mysql

3、复制启动脚本。

cd /usr/local/mysql/support-files

cp -a mysql.server /etc/init.d/mysqld

echo never > /sys/kernel/mm/transparent_hugepage/enabled
echo never > /sys/kernel/mm/transparent_hugepage/defrag

4、编辑配置文件my.cnf

加入:

[mysqld_safe]
thp-setting=never
malloc-lib=/usr/lib64/libjemalloc.so.1

找到libjemalloc.so.1文件,将他启动到/usr/lib64目录下

5、初始化安装数据库

./mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

6、执行安装tokudb安装脚本

./ps_tokudb_admin --enable -uroot -p

posted on 2018-03-27 16:17  叶落千尘 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/magmell/p/8658115.html

你可能感兴趣的:(percona-server-5.7二进制安装(tokudb))