当前线上zabbix数据按月分区单个分区文件过大,现重新按天分区。
注意事项:
1,“truncate table history;”时先停掉web server和zabbix server再操作数据库,不然“optimize table history;”会很慢。
2,“alter table `history` partition by range ( clock) …”,这和先删除这个表、然后使用“create table history partition by range ( clock) …”重新创建这个表具有同样的效果。
参考:
http://dev.mysql.com/doc/refman/5.5/en/partitioning-management-range-list.html
生成分区sql语句脚本: [caoyang@zabbixserver caoyang]# cat partition.sh #!/bin/bash startDate=20150304 endDate=20151231 startSec=`date -d "$startDate" "+%s"` endSec=`date -d "$endDate" "+%s"` for((i=startSec;i<=endSec;i+=86400)); do # echo `date -d "@$i" "+%Y-%m-%d"` echo "PARTITION p`date -d "@$i" "+%Y"`_`date -d "@$i" "+%m"`_`date -d "@$i" "+%d"` VALUES LESS THAN (UNIX_TIMESTAMP(\"`date -d "@$i" "+%Y-%m-%d"` 00:00:00\")) ENGINE = InnoDB," done 执行sql: ALTER TABLE `history_uint` PARTITION BY RANGE ( clock)( PARTITION p2015_03_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_03_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-03-31 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_04_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-04-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_05_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-05-31 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_06_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-06-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_07_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-07-31 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_08_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-08-31 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_09_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-09-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_10_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-10-31 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_11_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-11-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_01 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-01 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_02 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-02 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_03 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-03 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_04 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-04 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_05 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-05 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_06 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-06 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_07 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-07 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_08 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-08 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_09 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-09 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_10 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-10 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_11 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-11 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_12 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-12 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_13 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-13 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_14 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-14 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_15 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-15 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_16 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-16 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_17 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-17 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_18 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-18 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_19 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-19 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_20 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-20 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_21 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-21 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_22 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-22 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_23 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-23 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_24 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-24 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_25 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-25 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_26 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-26 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_27 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-27 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_28 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-28 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_29 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-29 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_30 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-30 00:00:00")) ENGINE = InnoDB, PARTITION p2015_12_31 VALUES LESS THAN (UNIX_TIMESTAMP("2015-12-31 00:00:00")) ENGINE = InnoDB, PARTITION pmax VALUES LESS THAN MAXVALUE ENGINE = InnoDB);