File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed
Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,12 @@ On a Debian based systems run:
5757apt-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
6167That's it! You are now done and you have setup MySQL partitioing. We could execute the script manually with:
6268```
Original file line number Diff line number Diff 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
102108sub create_next_partition {
You can’t perform that action at this time.
0 commit comments