Skip to content

Commit b06ec8f

Browse files
committed
Edits for documentation and comments
1 parent 5361a79 commit b06ec8f

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,12 @@ On a Debian based systems run:
5757
apt-get install libdatetime-perl liblogger-syslog-perl
5858
```
5959

60+
MAKE SURE TO UNCOMMENT THE CORRECT LINES FOR THE VERSION YOU NEED. Check the blog post for more information.
61+
```
62+
# MySQL 5.5
63+
# MySQL 5.6 + MariaDB
64+
# MySQL 8.x (NOT MariaDB!)
65+
```
6066

6167
That's it! You are now done and you have setup MySQL partitioing. We could execute the script manually with:
6268
```

mysql_zbx_part.pl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ sub check_have_partition {
7777
# MySQL 5.5
7878
# #my $sth = $dbh->prepare(qq{SELECT variable_value FROM information_schema.global_variables WHERE variable_name = 'have_partitioning'});
7979
#return 1 if $row eq 'YES';
80+
#
81+
# End of Mysql 5.5
8082

8183
# MySQL 5.6 + MariaDB
8284
# my $sth = $dbh->prepare(qq{SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'partition'});
@@ -87,16 +89,20 @@ sub check_have_partition {
8789
#
8890
# $sth->finish();
8991
# return 1 if $row eq 'ACTIVE';
92+
#
93+
# End of MySQL 5.6 + MariaDB
9094

91-
#MySQL 8.x (NOT MariaDB!)
95+
# MySQL 8.x (NOT MariaDB!)
9296
my $sth = $dbh->prepare(qq{select version();});
9397
$sth->execute();
9498
my $row = $sth->fetchrow_array();
9599

96100
$sth->finish();
97101
return 1 if $row >= 8;
102+
#
103+
# End of MySQL 8.x
98104

99-
#Do not uncomment last }
105+
# Do not uncomment last }
100106
}
101107

102108
sub create_next_partition {

0 commit comments

Comments
 (0)