使用idea连接MySQL数据库,出现了报错
报错内容:
Connection to database_name@localhost failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
搜索解决方案后得知可能是时区不匹配问题导致的,在数据库名称后面加
?serverTimezone=GMT
即可解决
使用idea连接MySQL数据库,出现了报错
报错内容:
Connection to database_name@localhost failed.
[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.
搜索解决方案后得知可能是时区不匹配问题导致的,在数据库名称后面加
?serverTimezone=GMT
即可解决