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:
57
57
apt-get install libdatetime-perl liblogger-syslog-perl
58
58
```
59
59
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
+ ```
60
66
61
67
That's it! You are now done and you have setup MySQL partitioing. We could execute the script manually with:
62
68
```
Original file line number Diff line number Diff line change @@ -77,6 +77,8 @@ sub check_have_partition {
77
77
# MySQL 5.5
78
78
# #my $sth = $dbh->prepare(qq{SELECT variable_value FROM information_schema.global_variables WHERE variable_name = 'have_partitioning'});
79
79
# return 1 if $row eq 'YES';
80
+ #
81
+ # End of Mysql 5.5
80
82
81
83
# MySQL 5.6 + MariaDB
82
84
# my $sth = $dbh->prepare(qq{SELECT plugin_status FROM information_schema.plugins WHERE plugin_name = 'partition'});
@@ -87,16 +89,20 @@ sub check_have_partition {
87
89
#
88
90
# $sth->finish();
89
91
# return 1 if $row eq 'ACTIVE';
92
+ #
93
+ # End of MySQL 5.6 + MariaDB
90
94
91
- # MySQL 8.x (NOT MariaDB!)
95
+ # MySQL 8.x (NOT MariaDB!)
92
96
my $sth = $dbh -> prepare(qq{ select version();} );
93
97
$sth -> execute();
94
98
my $row = $sth -> fetchrow_array();
95
99
96
100
$sth -> finish();
97
101
return 1 if $row >= 8;
102
+ #
103
+ # End of MySQL 8.x
98
104
99
- # Do not uncomment last }
105
+ # Do not uncomment last }
100
106
}
101
107
102
108
sub create_next_partition {
You can’t perform that action at this time.
0 commit comments