在使用DBeaver鏈接 MySQL 8.x 版本時碰見了兩個問題,經過查詢找到了解決方案,記錄一下:mysql
Public Key Retrieval is not allowed
sql
在驅動屬性裏設置 allowPublicKeyRetrieval
的值爲 true
spa
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
code
經過上面的報錯信息能夠發現是時區的問題,所以只要把時區改成當前系統時區便可。使用root用戶登陸mysql,而後執行如下命令:server
show variables like '%time_zone%';
set global time_zone='+8:00';
設置爲北京時區