The server time zone value ' Й׼ʱ ' are unrecognized or represents more than one time zone workaround

Source: Internet
Author: User
Tags mysql version

When using Mybatis-generator in IntelliJ idea, try run after plugin is configured, and the Server time zone value ' Й׼ʱ ' is unrecognized or Represents more than the exception of one time zone because the MySQL version currently in use is driven too high and has not been configured 6.0.6 caused by the following resolution:

method One:

Add a time zone configuration to the JDBC URL configuration: JDBC:MYSQL://LOCALHOST:3306/{DATABASE}?SERVERTIMEZONE=UTC

This method does not solve my problem, but it is also one of the methods;

Method Two:

Go to MySQL and view the Time_zone table in the command line by following the commands:

Show variables like '%time_zone% ';

Then, modify the MySQL system time_zone by command:

set global time_zone= ' +8:00 ';

Then enter:

flush Privileges;

can solve the problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.