DataGrip 2020.1连接数据库报错 Server returns invalid timezone. Need to set‘serverTimezone’property

简介: DataGrip 2020.1连接数据库报错 Server returns invalid timezone. Need to set‘serverTimezone’property

DataGrip 2020.1连接数据库报错 Server returns invalid timezone. Need to set‘serverTimezone’property

2345_image_file_copy_219.jpg

原因是MySQL驱动中默认时区是UTC,与本地时间(中国)相差八个小时,所以链接不上。

2345_image_file_copy_220.jpg

点击Set time zone

2345_image_file_copy_221.jpg

1.在框中填写 GMT,保存即可!(或填写 Asia/Shanghai)

2345_image_file_copy_222.jpg

2.也可以在url后添加:?serverTimezone=GMT

2345_image_file_copy_223.jpg

PS:

GMT(Greenwich Mean Time):格林威治标准时间

UTC:世界标准时间

CST(China Standard Time):中国标准时间

GMT + 8 = UTC + 8 = CST



目录
相关文章
|
12月前
|
人工智能 运维 关系型数据库
|
关系型数据库 MySQL 数据库连接
数据库连接工具连接mysql提示:“Host ‘172.23.0.1‘ is not allowed to connect to this MySQL server“
docker-compose部署mysql8服务后,连接时提示不允许连接问题解决
536 69
Java连接SQL Server数据库的详细操作流程
Java连接SQL Server数据库的详细操作流程
|
Java 数据库连接 数据库
|
SQL 存储 安全
数据库数据恢复—SQL Server数据库出现逻辑错误的数据恢复案例
SQL Server数据库数据恢复环境: 某品牌服务器存储中有两组raid5磁盘阵列。操作系统层面跑着SQL Server数据库,SQL Server数据库存放在D盘分区中。 SQL Server数据库故障: 存放SQL Server数据库的D盘分区容量不足,管理员在E盘中生成了一个.ndf的文件并且将数据库路径指向E盘继续使用。数据库继续运行一段时间后出现故障并报错,连接失效,SqlServer数据库无法附加查询。管理员多次尝试恢复数据库数据但是没有成功。
Java连接SQL Server数据库的详细操作流程
Java连接SQL Server数据库的详细操作流程
|
数据库 数据安全/隐私保护
Failed to load resource: the server responded with a status of 404 ()出错的原因是,因为自己调试的时候,设置了与宝塔不一样的数据库
Failed to load resource: the server responded with a status of 404 ()出错的原因是,因为自己调试的时候,设置了与宝塔不一样的数据库
|
关系型数据库 MySQL Go
mysql,数据库Server returns invalid timezone. Go to ‘Advanced‘ tab 数据库的行和列没有出现怎么办p
mysql,数据库Server returns invalid timezone. Go to ‘Advanced‘ tab 数据库的行和列没有出现怎么办p
数据库bug-[08001] Could not create connection to database server. Attempted reconnect 3,主机名ip必须写对
数据库bug-[08001] Could not create connection to database server. Attempted reconnect 3,主机名ip必须写对

热门文章

最新文章

下一篇
开通oss服务