MySQLのI n v a l i d C o n nectionAttributeException,SQLNonTransientConnectionException

943 ワード

java.sql.SQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
 
 com.mysql.cj.exceptions.I n v a l i d C o n t i onAttributeException:The server time zone value' to use a more specifc time zone value if you want to utilize time zone support.     at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)     at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)     at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
 
プロジェクトは上記の2つのエラーメッセージを同時に報告し、urlアドレスに接続した後、以下の構成を追加します.
serverTimezone=UTC&allowMultiQueries=true&autoReconnect=true&useUnicode=true&failOverReadOnly=false&useSSL=false&characterEncoding=utf-8