最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁(yè) - 科技 - 知識(shí)百科 - 正文

Centos6.5Percona5.6.27Tokudb配置_MySQL

來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 20:13:33
文檔

Centos6.5Percona5.6.27Tokudb配置_MySQL

Centos6.5Percona5.6.27Tokudb配置_MySQL:# 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,創(chuàng)建符號(hào)鏈接 /usr/local/percona 啟動(dòng)出錯(cuò) /usr/local/percona/bin/mysqld:
推薦度:
導(dǎo)讀Centos6.5Percona5.6.27Tokudb配置_MySQL:# 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,創(chuàng)建符號(hào)鏈接 /usr/local/percona 啟動(dòng)出錯(cuò) /usr/local/percona/bin/mysqld:

# 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,創(chuàng)建符號(hào)鏈接 /usr/local/percona

啟動(dòng)出錯(cuò) /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

啟動(dòng)出新錯(cuò)誤 [ERROR] TokuDB is not initialized because jemalloc is not loaded

解決:安裝yum擴(kuò)展源 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 查看庫(kù)所在具體路徑

/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以及l(fā)ogdir和MySQL的datadir分開,美觀點(diǎn)

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

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

禁用 transparent_hugepage

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

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

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

啟動(dòng)成功后安裝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 |

...

聲明:本網(wǎng)頁(yè)內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

Centos6.5Percona5.6.27Tokudb配置_MySQL

Centos6.5Percona5.6.27Tokudb配置_MySQL:# 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,創(chuàng)建符號(hào)鏈接 /usr/local/percona 啟動(dòng)出錯(cuò) /usr/local/percona/bin/mysqld:
推薦度:
標(biāo)簽: 6.5 mysql centos
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top