• 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

  • 相关阅读:
    leetcode刷题37
    leetcode刷题36
    leetcode刷题38
    leetcode刷题35
    leetcode刷题34
    leetcode刷题33
    记一次Unity使用XNode插件时自动连线问题
    Unity中UGUI图片跟随文本自适应
    Unity中多个物体交换位置
    使用VSCode编译C
  • 原文地址:https://www.cnblogs.com/magmell/p/8658115.html
Copyright © 2020-2023  润新知