1、成功安装tokudb
ps_tokudb_admin --enable -uroot -p
Enter password:
Continuing without password...
Checking if Percona server is running with jemalloc enabled...
grep: /proc/5440/environ: Permission denied
>> Percona server is running with jemalloc enabled.
Checking transparent huge pages status on the system...
>> Transparent huge pages are currently disabled on the system.
Checking if thp-setting=never option is already set in config file...
>> Option thp-setting=never is not set in the config file.
>> (needed only if THP is not disabled permanently on the system)
Checking TokuDB plugin status...
>> TokuDB plugin is installed.
Adding thp-setting=never option into /etc/mysql/my.cnf
>> Successfuly added thp-setting=never option into /etc/mysql/my.cnf #把参数thp-setting=never加载到了my.cnf的[mysqld_safe]的选项组下
2、安装报错
ps_tokudb_admin --enable --user=mysql--password=root --socket=/ssd/mysql6603.sock --host=ip地址 --port=6603--defaults-file=/ssd/my.cnf
Checking if Percona Server isrunning with jemalloc enabled...
ERROR: Percona Server is notrunning with jemalloc, please restart mysql service to enable it and then runthis script...
缺包,先安装
# yum install epel-release
然后就可以安装jemalloc了:
# yum install jemalloc
[mysqld_safe]
#malloc_lib =/usr/local/Percona-Mysql/lib/mysql/libjemalloc.so
#malloc_lib=/ssd/percona/Percona-Server-5.7.17-11-Linux.x86_64.ssl101/lib/mysql/libjemalloc.so
[mysqld]
plugin-dir=/usr/lib64/mysql/plugin
plugin_load=ha_tokudb.so