zoukankan      html  css  js  c++  java
  • MySql 时区错误

    mysql的时区错误问题: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one

    最近用mybatis 插件生成mapper跟domain时,遇到 The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone这个问题, 

     

    方案一:

    google一下,经过测试,有效的一个办法如下: 

    数据库里进行如下操作:

    show variables like '%time_zone%';

    set global time_zone = '+8:00';

     

    方案二:

    连接数据库的字符串后添加&serverTimezone=UTC,其中UTC是统一标准世界时间。

    jdbc:mysql://127.0.0.1/sell?characterEncoding=UTF-8&userSSL=false&serverTimezone=UTC

     

    abc

  • 相关阅读:
    (转)IDEA ERROR:找不到或无法加载主类
    Piggy-Bank
    Monkey and Banana
    Max Sum Plus Plus
    Doing Homework
    繁繁的游戏
    看试卷
    繁繁的队列
    大整数乘法
    文件操作(c++)
  • 原文地址:https://www.cnblogs.com/Latiny/p/10976510.html
Copyright © 2011-2022 走看看