在使用DBeaver连接 MySQL 8.x 版本时遇见了两个问题,通过查询找到了解决方案,记录一下:问题问题一Public Key Retrieval is not allowed解决在驱动属性里设置 allowPublicKeyRetrieval 的值为 true问题二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 utili解决通过上面的报错信息可以发现是时区的问题,因此只要把时区改为当前系统时区即可。使用root用户登录mysql,然后执行以下命令:show variables like ‘%time_zone%’;set global time_zone=’+8:00’; 设置为北京时区