2114766402 2020-03-31 16:43 采纳率: 85.7%
浏览 404
已采纳

java无法连接数据库,抛出Exception

Exception in thread "main" java.sql.SQLException: 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.
图片说明

求大佬们看看哪里错了,数据库

  • 写回答

2条回答 默认 最新

  • fengqingyuebai19 2020-03-31 16:59
    关注

    url后面加 ?serverTimezone=GMT%2b8

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?