mysql问题
提示时区错误
具体报错如下
1
The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone
有两种解决方法
a. 在数据库路径的后面增加时区配置选项
1
url: jdbc:mysql://localhost:3306/sell?characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8
b. 增加全局配置的选项
使用下面的语句查看当前的时区配置
1
SHOW VARIABLES LIKE '%time_zone%'
输出结果如下
Variable_name | Value |
---|---|
system_time_zone | |
time_zone | SYSTEM |
将时区设置为 +8
区
1 | SET GLOBAL time_zone = '+8:00' |
You need to set
install_url
to use ShareThis. Please set it in _config.yml
.