zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    Tomcat启动流程简析
    Tomcat的启停脚本源码解析
    Servlet规范
    CCNA
    CCNA-Part 6
    MYSQL 使用基础
    CCNA-Part5
    CCNA-Part4 -网络层
    MySQL 字符串索引优化方案
    CCNA-Part3
  • 原文地址:https://www.cnblogs.com/magmell/p/8658115.html
Copyright © 2011-2022 走看看