- Pycharm 连接 MySQL 时报错java.sql.SQL
- 八、pycharm连接数据库报错解决
- Pycharm 连接 MySQL ERROR:1452
- navicat连接mysql报 2013-Lost connec
- Pycharm连接MySQL报错:RuntimeError: c
- The solution is: Error: ER_NOT_
- Python3 使用 pymysql 连接 MySQL 8.0
- 安装mysql8后,使用mysql workbench连接mys
- Ubuntu 16.04 mysqld.sock找不到导致无法连
- phpMyAdmin连接MySQL8.0报错为:#2054 无法
问题:
通过Pycharm 中的database 连接本地的MSQL数据库碰到报错,如下:
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 server Timezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.
分析:
因为安装mysql的时候时区设置的不正确 mysql默认的是美国的时区,而我们中国大陆要比他们迟8小时,采用+8:00格式
解决:
set global time_zone='+8:00'
网友评论