PyCharm Community 2019.2 connection MySQL8.0 zone of sync solution

In Windows10, PyCharm Community 2019.2 connection MySQL8.0 connection error, IDE suggested as follows:

Cannot connect to "MySQL8.0".
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

Resolve as follows, reference links: https://stackoverflow.com/questions/930900/how-do-i-set-the-time-zone-of-mysql

First, open MySQL8.0 Command Line Client -unicode, enter the MySQL password.

Second, after landing enter the following code, and then return execution to get smooth.

1 SET GLOBAL time_zone = '+8:00';

 

 

Guess you like

Origin www.cnblogs.com/simyeo/p/11420028.html