浏览代码

Set mysql server time (#2720)

Nate 8 年之前
父节点
当前提交
cdae925a4a
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      toolset/setup/linux/databases/mysql/create.sql

+ 4 - 0
toolset/setup/linux/databases/mysql/create.sql

@@ -1,3 +1,7 @@
+# To maintain consistency across servers and fix a problem with the jdbc per
+# http://stackoverflow.com/questions/37719818/the-server-time-zone-value-aest-is-unrecognized-or-represents-more-than-one-ti
+SET GLOBAL time_zone = '00:00';
+
 # modified from SO answer http://stackoverflow.com/questions/5125096/for-loop-in-mysql
 DROP DATABASE IF EXISTS hello_world;
 CREATE DATABASE hello_world;