I was looking at MySQL partitioning on https://www.zabbix.org/wiki/Docs/how...l_partitioning.
At 1.5.3, there is a line saying:
This notation does not work for me on MariaDB-10.2. What works is:
Not sure if the former version worked in some older version of MySQL though.
Is there someone who can merge this somewhere in the wiki, or should I create an account for editing the wiki and do it myself?
The recommendations say that: "Consider using Use XtraDB, rather than pure InnoDB. This backend engine is included in such MySQL forks as MariaDB and Percona."
As of MariaDB-10.2, XtraDB is no longer included: https://mariadb.com/kb/en/library/wh...ead-of-xtradb/
Finally, at 1.5.2 we need to do a SELECT on several tables to find the oldest date so we know which partitions must be made, and create SQL from that.
I've made a script that automatically generates the SQL for the supplied tables that is needed for initializing MySQL partitioning, and I would like to share it for review, maybe even for inclusion in the wiki.
Can I paste the script here and get feedback and/or corrections, or is another forum more appropriate?
At 1.5.3, there is a line saying:
Code:
ALTER TABLE `history` ADD PARTITION p2011_10_23 VALUES LESS THAN (UNIX_TIMESTAMP("2011-10-24 00:00:00")) ENGINE = InnoDB;
Code:
ALTER TABLE `history` ADD PARTITION (PARTITION p2017_09_22 VALUES LESS THAN (UNIX_TIMESTAMP("2017-09-22 00:00:00")));
Is there someone who can merge this somewhere in the wiki, or should I create an account for editing the wiki and do it myself?
The recommendations say that: "Consider using Use XtraDB, rather than pure InnoDB. This backend engine is included in such MySQL forks as MariaDB and Percona."
As of MariaDB-10.2, XtraDB is no longer included: https://mariadb.com/kb/en/library/wh...ead-of-xtradb/
Finally, at 1.5.2 we need to do a SELECT on several tables to find the oldest date so we know which partitions must be made, and create SQL from that.
I've made a script that automatically generates the SQL for the supplied tables that is needed for initializing MySQL partitioning, and I would like to share it for review, maybe even for inclusion in the wiki.
Can I paste the script here and get feedback and/or corrections, or is another forum more appropriate?
):
Comment