mysql报错:java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone.
2024-09-06 15:23:43
mybatis链接mysql,启动服务报错:
java.sql.SQLException: 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.
原因:时区问题导致的
解决方法:
jdbc:mysql://127.0.0.1:3306/onestep?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&useSSL=false&serverTimezone=GMT%2B8
数据源后加 &serverTimezone=GMT%2B8 即可解决。
最新文章
- 0009《SQL必知必会》笔记05-表的创建与约束
- longitude
- SU Demos-03T-F Analysis-01Sugabor
- zabbix监控nginx
- Chapter 6 Windows下编译pycaffe
- [改善Java代码]警惕自增的陷阱
- 集成Facebook和Twitter的Model动画-b
- SPSS时间序列分析
- java cglib动态代理原理及样例
- 轻量级django 一
- XVIII Open Cup named after E.V. Pankratiev. GP of Romania
- oracle drop 表后 恢复
- IdentityServer4【Topic】之登陆注册
- ReactNative调试技术-真机调试
- oneNote2016代码高亮插件
- c++ 变量 常量
- 03-matplotlib-折线图
- /proc目录下文件详解
- Visual Studio 2017(VS2017) 企业版 Enterprise 注册码
- mysql向上递归&;向下递归
热门文章
- 【python小随笔】List列表的常见函数与切片
- @codechef - KILLER@ Painting Tree
- flask 与celery
- 使用 Markdown Flow 画流程图
- MaxCompute 图计算用户手册(下)
- day15 web前端之css
- python 布尔型(bool)
- Java练习 SDUT-2240_织女的红线
- POJ-3186_Treats for the Cows
- Android 使用Toolbar+DrawerLayout快速实现仿“知乎APP”侧滑导航效果