mysql-connector-java-8.0.12 : getting error for 'Malay Peninsula Standard Time' server time zone

前端 未结 1 1441
忘掉有多难
忘掉有多难 2021-01-29 10:36

We recently upgraded MySQL from 5.6 to 8. So, as per upgrade instructions,using mysql-java-connector(8.0.12) and new driver class name i.e com.mysql.cj

相关标签:
1条回答
  • 2021-01-29 11:01

    I resolved myself without changing any registry at OS level. This may help others.

    Getting this error since Time zone name with 'Malay Peninsula Standard Time' is not available in MySQL. So as instructed in this MySQL Documenation, downloaded timezone_2018e_posix_sql.zip from this MySQL Timezones and loaded into MySQL database as instructed. After that added below configuration in my.ini file and restarted the server.

    default_time_zone=Asia/Singapore
    
    0 讨论(0)
提交回复
热议问题