Percona Server TokuDB安裝

G8bao7發表於2015-06-08


 Percona Server 5.6 releases starting with 5.6.19-67.0 




### require
# libjemalloc library
wget
tar xjf jemalloc-3.4.0.tar.bz2
./configure && make && make install
echo '/usr/local/lib' > /etc/ld.so.conf.d/local.conf && ldconfig

# close huge pager

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

# 配置
[mysqld_safe]
malloc-lib = /usr/local/lib/libjemalloc.so

### 下載

Percona-Server-5.6.23-rel72.1-Linux.x86_64.tar.gz
Percona-Server-5.6.23-rel72.1-TokuDB.Linux.x86_64.tar.gz

### 解壓,順序
tar -zxvf Percona-Server-5.6.23-rel72.1-Linux.x86_64.tar.gz
tar -zxvf Percona-Server-5.6.23-rel72.1-TokuDB.Linux.x86_64.tar.gz
mv Percona-Server-5.6.23-rel72.1-Linux.x86_64 /usr/local/
cd /usr/local/Percona-Server-5.6.23-rel72.1-Linux.x86_64
cp bin/my_print_defaults /usr/bin/

# vim support-files/mysqld_multi.server
basedir=/usr/local/Percona-Server-5.6.23-rel72.1-Linux.x86_64
bindir=$basedir/mysql/bin
cp support-files/mysqld_multi.server /etc/init.d/psmysqld_multi

# vim /etc/my.cnf. 多例項配置與mysql相同
[mysqld]
basedir=/usr/local/Percona-Server-5.6.23-rel72.1-Linux.x86_64

#
scripts/mysql_install_db --basedir=/usr/local/Percona-Server-5.6.23-rel72.1-Linux.x86_64  --defaults-file=/etc/my.cnf --user=mysql --datadir=/mysql/data/psmysql5623/data33006/

#
/etc/init.d/psmysqld_multi start

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26250550/viewspace-1691442/,如需轉載,請註明出處,否則將追究法律責任。

相關文章