1、每次開機,都會報以下錯誤。需要設定時區。
om.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '�й���ʱ��' is unrecognized or represents more than one time zone.
在my.ini中加上以下配置可以解決,必須放到mysqld 下,放入其它位置無效。配置文件默認位置是C:\ProgramData\MySQL\MySQL Server 8.0
default-time-zone = '+8:00'
2、重啓mysql服務時,也會報錯
Public Key Retrieval is not allowed
在連接數據庫的url上添加參數就行
&allowPublicKeyRetrieval=true