IDEA 配置连接数据库报错 Server returns invalid timezone. Need to set ‘serverTimezone‘ property.
项目场景:
提示:使用IDEA连接数据库:
问题描述
提示:IDEA 配置连接数据库报错 Server returns invalid timezone. Need to set ‘serverTimezone‘ property.
原因分析:
百度翻译结果:服务器返回无效时区。需要设置“serverTimezone”属性
MySQL驱动中默认时区是UTC,与本地时间(中国)相差八个小时,所以链接不上。
所以只需要修改时区就可以了.
解决方案:
可以用两种方法解决,都是解决时区问题。
- 第一种:点开最右侧 Advanced,找到 serverTimezone(没有的在最后自己添加),在右侧value处填写 GMT,保存即可!(或填写 Asia/Shanghai)
- 第二种:在在url后添加:?serverTimezone=GMT
IDEA 配置连接数据库报错 Server returns invalid timezone. Need to set ‘serverTimezone‘ property.相关推荐
- IDEA配置连接数据库时报错Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezone‘ propert
IDEA配置数据库连接时报错: Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' prope ...
- IDEA连接数据库时区问题,报红Server returns invalid timezone. Need to set ‘serverTimezone‘ property.
目录 1.IDEA连接数据库步骤 2.时区不一致问题解决 2.1 解决方法一:手动设置 "serverTimezon" 属性值 2.2 解决方法二:URL 中添加时区设置 2.3 ...
- Datagrip连接数据库,报错:Server returns invalid timezone. Need to set ‘serverTimezone‘ property
导读 最近被同事案例了一款数据库客户端工具:DataGrip,大爱! DataGrip 是由 JetBrains 公司(就是那个出品 Intellij IDEA 的公司)推出的数据库管理软件,是一款收 ...
- Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘ 错误
Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon' 问题描述: intellij idea连接m ...
- Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘
问题描述:idea编译器在连接mysql数据库时报错:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTime ...
- DataGrip连接MySQL报错: Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon
背景 DataGrip连接MySQL报错,特此纪要! 问题 DataGrip连接MySQL报错: Server returns invalid timezone. Go to 'Advanced' t ...
- idea连接数据库Server returns invalid timezone. Go to ‘Advanced‘ tab and set ‘serverTimezon‘
idea插件连接数据库测试连接时:Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezon' 解决办法: ...
- Server returns invalid timezone
IDEA连接数据库的时候连接不上,并且报了一个错误Server returns invalid timezone 原因:服务器返回无效时区 解决方案:转到"高级"选项卡并手动设置& ...
- Mysql报错时区错误invalid timezone
问题 Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property manually ...
最新文章
- 关于未来50年的工作与生活,三星联合未来学家们做出了这些预测
- Xamarin.Forms项目无法添加服务引用
- java虚拟机改装_java虚拟机线上配置
- python os 文件操作 chdir(path)方法
- html标题前圆圈样式,漂亮的css3圆形鼠标悬停效果实例
- windows录屏_ApowerREC for Mac(屏幕录屏工具) V1.2.7.10激活版
- 封装DataList分页
- Docker使用link建立容器之间的连接
- python问号堂--第二篇
- 数据挖掘十大算法之Apriori算法
- 如何用计算机解一元三次方程,利用Excel电子表格解一元三次方程
- linux内核编译串口驱动,ARM Linux下安装CH341串口驱动
- IDEA打包jar 跳过测试
- 百度界面代码及效果展示
- 游戏安全--手游安全技术入门笔记
- 初中使用计算机,初中生使用计算器的利和弊!!!急!!!!!!!!!!!!!!!!!!!!
- 数据挖掘基础之数据清洗:用python把“深圳二手房参考价”PDF保存为EXCEL
- C++11的消息总线
- java - websocket配合spring-security使用token认证_个人文章 - SegmentFault 思否
- 虚幻引擎5 学习笔记2