当前位置:Gxlcms > 数据库问题 > Ubutu 安装tokudb

Ubutu 安装tokudb

时间:2021-07-01 10:21:17 帮助过:9人阅读


http://imysql.cn/2014/06/24/migrate-zabbix-db-to-tokudb.shtml(转自)


Get:1 http://mirrors.163.com/ubuntu/ trusty-security/main mysql-common all 5.5.50-0ubuntu0.14.04.1 [12.9 kB]

Get:2 http://mirrors.163.com/ubuntu/ trusty-security/main libmysqlclient18 amd64 5.5.50-0ubuntu0.14.04.1 [595 kB]

Get:3 http://repo.percona.com/apt/ trusty/main percona-server-common-5.6 amd64 5.6.32-78.0-1.trusty [12.0 kB]

Get:4 http://repo.percona.com/apt/ trusty/main libperconaserverclient18.1 amd64 5.6.32-78.0-1.trusty [569 kB]

Get:5 http://repo.percona.com/apt/ trusty/main percona-server-client-5.6 amd64 5.6.32-78.0-1.trusty [1,337 kB]

Get:6 http://repo.percona.com/apt/ trusty/main percona-server-server-5.6 amd64 5.6.32-78.0-1.trusty [11.6 MB]


See http://www.percona.com/doc/percona-server/5.6/management/udf_percona_toolkit.html for more details


sudo apt-get install percona-server-server-5.6 


sudo apt-get install percona-server-client-5.6


sudo apt-get autoremove percona-server-client-5.6 --purge


sudo apt-get autoremove percona-server-server-5.6  --purge



修改my.cnf注意事项:

1.停止实例并将配置文件添加TokuDB引擎参数

  如果使用默认参数可以不停实例

 如果要修改tokudb_data_dir/tokudb_log_dir, 需要删除实例数据目录下面TokuDB加载文件,-BASH "rm -rf *tokudb*"

2.第一次加载成功TokuDB,之后启动自动加载,但是tokudb_*配置错误会导致引擎注册启动失败,TokuDB引擎表无法使用




Tokudb 参数优化

http://www.cnblogs.com/manong792/p/5016457.html


http://imysql.cn/2014/06/24/migrate-zabbix-db-to-tokudb.shtml



ubuntu常见错误--could not get lock /var/lib/dpkg/lock -open


sudo rm /var/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock


模拟建表:


CREATE TABLE `login_log_Toku` (

  `userID` varchar(255) NOT NULL

) ENGINE=TokuDB DEFAULT CHARSET=utf8;



Percond tookit 工具使用


http://www.jb51.net/article/75080.htm




160909 13:09:21 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

160909 13:09:23 mysqld_safe Transparent huge pages are already set to: never.

160909 13:09:23 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql

2016-09-09 13:09:23 0 [ERROR] /usr/sbin/mysqld: ambiguous option ‘--i‘ (ignore-db-dir, interactiv

e_timeout)

2016-09-09 13:09:23 0 [ERROR] Aborting


2016-09-09 13:09:23 0 [Note] Binlog end






本文出自 “隐隐的泪” 博客,请务必保留此出处http://lijuntao.blog.51cto.com/11691147/1946637

Ubutu 安装tokudb

标签:ubutu 安装tokudb

人气教程排行