You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,7 @@
1
1
## Important notes/bugs:
2
2
3
3
#1 The script is FIXED for MySQL 8. It works for both MySQL and MariaDB latest versions and should still work with older versions as well.
4
+
#2 The weekly partitioning is FIXED.
4
5
5
6
Make sure to uncomment the correct lines (see blog post), the default is setup for MySQL 5.6 or MariaDB.
6
7
@@ -77,6 +78,8 @@ journalctl -t mysql_zbx_part
77
78
```
78
79
79
80
### Partitioning by week
81
+
NOTE: See version 2.1 for older (before 20-09-2021) partitioned databases. Otherwise use 3.0+ upwards (recommended to use current).
82
+
80
83
By default history tables are partitioned by day and trends are partitioned by month. It is also possible to partition both types of tables by **week**.
81
84
82
85
To do so change the **period** value to **week** under **my $tables =**. Also make sure to use a different naming convention for your partition names (2021_w36) and while partitioning make sure to use the correct UNIXTIMESTAMP.
0 commit comments