File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,8 @@ if [ "$1" = 'mysqld' ]; then
49
49
exit 1
50
50
fi
51
51
52
+ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql --protocol=socket -uroot mysql
53
+
52
54
# These statements _must_ be on individual lines, and _must_ end with
53
55
# semicolons (no line breaks or comments are permitted).
54
56
# TODO proper SQL escaping on ALL the things D:
Original file line number Diff line number Diff line change @@ -48,6 +48,9 @@ if [ "$1" = 'mysqld' ]; then
48
48
exit 1
49
49
fi
50
50
51
+ # sed is for https://bugs.mysql.com/bug.php?id=20545
52
+ mysql_tzinfo_to_sql /usr/share/zoneinfo | sed ' s/Local time zone must be set--see zic manual page/FCTY/' | mysql --protocol=socket -uroot mysql
53
+
51
54
# These statements _must_ be on individual lines, and _must_ end with
52
55
# semicolons (no line breaks or comments are permitted).
53
56
# TODO proper SQL escaping on ALL the things D:
Original file line number Diff line number Diff line change @@ -48,6 +48,8 @@ if [ "$1" = 'mysqld' ]; then
48
48
exit 1
49
49
fi
50
50
51
+ mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql --protocol=socket -uroot mysql
52
+
51
53
# These statements _must_ be on individual lines, and _must_ end with
52
54
# semicolons (no line breaks or comments are permitted).
53
55
# TODO proper SQL escaping on ALL the things D:
You can’t perform that action at this time.
0 commit comments