1. Modify my INI.file
Mothod:
[mysqld] add
default-time-zone=’+8:00′
set global time_ zone=’+8:00’
#serverTimezone=Asia/Shanghai
#set global time_zone=Asia/Shanghai
Mothod 2: command configuration
2. URL setting of pycharm JDBC: mysql://localhost:3306/mysql?serverTimezone=Asia/Shanghai
3. Connection succeeded
4. Data query succeeded
Similar Posts:
- Failed to obtain JDBC Connection
- [Solved] Error: The server time zone value ‘???ú±ê×??±??’ is unrecognized or represents more than one time zone.
- [Solved] MySQL Error: com.mysql.cj.jdbc.util.TimeUtil.loadTimeZoneMappings(TimeUtil.java:163)
- [Solved] The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone
- How to Solve flash error: “ModuleNotFoundError” or “tzlocal.utils.ZoneInfoNotFoundError”
- Logstash output jdbc Error: java.lang.IllegalAccessError: tried to access class com.mysql.jdbc.EscapeProcessor from class com.mysql.jdbc.ConnectionImpl
- MySQLERROR 1558 (HY000): Column count of mysql.user is wrong.
- [Solved] Ambari Start Error: The server time zone value ‘EDT’ is unrecognized or represents more than one time zone
- [Solved] Spring Error: java.sql.SQLException: Access denied for user ‘${user}’@’localhost’ (using password: YES)
- [Solved] ### Error querying database. Cause: java.sql.SQLException: The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more XXXXX