背景: 安装了最新的 MySQL 8.0 存点东西, 使用 DBeaver 连接时报错 (公司限制仅建议使用这个), 然后连接时报错
报错信息一: 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.
报错原因: 自动检测时区失败, 需要自己选择时区
解决方式: 修改服务器时区
报错信息二: Public Key Retrieval is not allowed
报错原因: 新版 MySQL 加密方式与保护协议的问题.
解决方式: 修改驱动属性中 allowPublicKeyRetrieval 参数
至此, 连接成功!