MySQL连接出现服务器时区设置错误

    xiaoxiao2021-12-14  18


    运行服务器时出现如下错误:

    ERROR: 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.

    给连接数据库url添加serverTimezone=UTC语句

    jdbc_url=jdbc:mysql://localhost:3306/login?serverTimezone=UTC

    就可以成功连接数据库了

    转载请注明原文地址: https://ju.6miu.com/read-965472.html

    最新回复(0)