mysql问题

  1. 提示时区错误

    具体报错如下

    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'
作者

Bruce Liu

发布于

2019-03-11

更新于

2022-11-12

许可协议

You need to set install_url to use ShareThis. Please set it in _config.yml.
You forgot to set the business or currency_code for Paypal. Please set it in _config.yml.

评论

You forgot to set the shortname for Disqus. Please set it in _config.yml.