一、环境要求:
    Operating Systems:64-bit Linux
    Memory: >=1G

二、安装步骤

1.下载安装包mysql-5.5.41-tokudb-7.5.5-linux-x86_64.tar.gz

http://www.tokutek.com/tokudb-for-mysql/download-community/

mysql/tokudb安装-LMLPHP

2.创建mysql用户、组、安装目录

groupadd -g 927 mysql
useradd -r -u 927 -g mysql mysql
mkdir -pv /opt/tokutek
 
3.解压安装
cd /opt/tokutek
tar xvzf /path/to/mysql-5.5.30-tokudb-7.1.0-linux-x86_64.tar.gz
ln -sv mysql-5.5.30-tokudb-7.1.0-linux-x86_64 mysql

4.权限配置

chown -Rv mysql:mysql /opt/tokutek

5.my.cnf配置

cp -v support-files/my-small.cnf /etc/my.cnf
datadir = /var/lib/mysql
basedir = /opt/tokutek/mysql
user = mysql
6.初始化
scripts/mysql_install_db --user=mysql
7.配置服务
a.修改mysql.server
b.创建link
ln -sv /opt/tokutek/mysql/support-files/mysql.server /etc/init.d/mysql

8.启动

service mysql start 
关闭transparent_hugepage:
echo never > /sys/kernel/mm/transparent_hugepage/enabled

  

9.验证

mysql/tokudb安装-LMLPHP

mysql/tokudb安装-LMLPHP

三、参考文档

http://docs.tokutek.com/tokudb/tokudb-index-installation.html

05-10 22:27