Centos 6.5 Percona 5.6.27 Tokudb 配置

來源:互聯網
上載者:User

標籤:

參考 https://www.percona.com/doc/percona-server/5.6/tokudb/tokudb_installation.html

# wget https://www.percona.com/downloads/Percona-Server-5.6/Percona-Server-5.6.27-75.0/binary/tarball/Percona-Server-5.6.27-rel75.0-Linux.x86_64.ssl101.tar.gz  

解壓到 /usr/local,建立符號連結 /usr/local/percona

啟動出錯 /usr/local/percona/bin/mysqld: error while loading shared libraries: libnuma.so.1: cannot open shared object file: No such file or directory

解決:尋找   # yum search libnuma

numactl.x86_64 : Library for tuning for Non Uniform Memory Access machines

numactl-devel.x86_64 : Development package for building Applications that use numa

安裝 yum install numactl

啟動出新錯誤 [ERROR] TokuDB is not initialized because jemalloc is not loaded

解決:安裝yum擴充源 EPEL即Extra Packages for Enterprise Linux

# rpm -ivh http://mirrors.sohu.com/fedora-epel/6/x86_64/epel-release-6-8.noarch.rpm

# yum install jemalloc 安裝了 jemalloc-3.6.0-1.el6.x86_64

# rpm -ql jemalloc-3.6.0-1.el6.x86_64 查看庫所在具體路徑

/usr/lib64/libjemalloc.so.1

# vi /etc/my.cnf

[mysqld_safe]

malloc-lib=/usr/lib64/libjemalloc.so.1

[mysqld]

...

plugin-dir = /usr/local/percona/lib/mysql/plugin

plugin-load=ha_tokudb.so

tokudb_row_format = tokudb_fast

tokudb_cache_size = 1G

tokudb_commit_sync = 0

tokudb_directio = 1

tokudb_read_block_size = 128K

tokudb_read_buf_size = 128K

#把TokuDB datadir以及logdir和MySQL的datadir分開,美觀點

tokudb-data-dir = /data/mysql/tokudb/data

tokudb-log-dir  = /data/mysql/tokudb/log

禁用 transparent_hugepage

# vi /etc/rc.local 為了立即生效,還要手工執行下這兩句

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

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

啟動成功後安裝tokudb

# cd /usr/local/percona/bin

# ./ps_tokudb_admin --enable -uroot -pPassw0rd

mysql: error while loading shared libraries: libreadline.so.5: cannot open shared object file: No such file or directory

 ldd /usr/local/percona/bin/mysql        

linux-vdso.so.1 =>  (0x00007fff197a5000)        

libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f422479d000)        

libreadline.so.5 => not found   

解決辦法 yum install compat-readline5-devel

安裝成功後查看 mysql> SHOW ENGINES;

| TokuDB | YES | Tokutek TokuDB Storage Engine with Fractal Tree(tm) Technology | YES | YES | YES |

...

 

Centos 6.5 Percona 5.6.27 Tokudb 配置

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.