08 2016 档案
mysql 5.7配置文件参数详解
摘要:read_buffer_size 默认大小:128KB 最大:2GB 最小:8KB 增量:必须为4KB的整数倍,如果配置的不是整数倍,会向下取整 用途: 1.MyISAM表顺序扫描提供的缓存 2.所有存储引擎当使用到order by 时缓存索引到该缓存 3.所有存储引擎当批量插入分区时会使用到该缓存
阅读全文
mysql 批量插入数据存储过程
摘要:create procedure pFastCreateNums (cnt int unsigned) begin declare s int unsigned default 1; truncate table nums; insert into nums select s; while s 2
阅读全文
int unsigned实验
摘要:create table t1(a int unsigned,b int unsigned); insert into t1 select 1,2; select 1 2 from t1; Error Code: 1690. BIGINT UNSIGNED value is out of range
阅读全文
mongodump 备份
摘要:规划 副本集,其中加了个隐藏节点,用来做备份,所以备份脚本直接在隐藏节点做,目前数据不大,直接本机磁盘存储,后续如果数据集大,那么在本地存最近一天的备份,远程根据需求存储几天的备份 创建备份用户 db.createUser( { user: "backup", pwd: "password", ro
阅读全文
mysql5.7碰到的坑
摘要:日志输出时区问题 输出日志有这些信息 2016 08 16T02:23:09.831827Z 112241 [Note] Aborted connection 112241 to db: 'test' user: 'admin_logs' host: 'ip' (Got an error readi
阅读全文
mongodb-replset安装
摘要:节点分配 10.110.18.89 10.110.18.90 10.110.18.94 配置文件 systemLog: destination: file path: "/data/mongodb/log/system.log" quiet: true logAppend: true logRota
阅读全文
mongodb-索引
摘要:说明:创建索引时,列名:int 中的int数字指的是正序或者倒序,如果是1表明是正序,-1表示倒序 1、查询collection上的索引 db.users.getIndexes() 2、查询当前的db的所有collection所拥有的索引 3、创建索引(background使创建索引的过程在后台完成
阅读全文
mongostat 3.2指标详解
摘要:存储引擎:wiredTiger /usr/local/mongodb-3.2.8/bin/mongostat -uroot -pcEqHuoqiJYhjVpuL --host 127.0.0.1 --port 15000 --discover --authenticationDatabase adm
阅读全文
浙公网安备 33010602011771号