我通过语句查出来数据库中的市区也是'+8:00',可是mysql运行状态中的启动时间和实际的时间差距8个小时,不知道怎么修改才能使mysql的启动时间和系统时间一致。
知道的请帮忙解决一下。

解决方案 »

  1.   

    在配置文件my.ini里配置[mysqld]   
    default-time-zone=+8:00
      

  2.   

    --default-time-zone=timezone 
    Command-Line Format --default-time-zone=name 
    Option-File Format default-time-zone 
      Permitted Values  
    Type string Set the default server time zone. This option sets the global time_zone system variable. If this option is not given, the default time zone is the same as the system time zone (given by the value of the system_time_zone system variable. 
      

  3.   

    还是先把region里头的时区调对才好。
      

  4.   

    mysql默认是用的操作系统的时区的
      

  5.   

    我来学习的,我认为应从下面两个地方检查着手。
    1、mysql默认是用的操作系统的时区的,首先检查下系统时间是否正确吧
    2、在配置文件my.ini里配置(试着修改下吧
    [mysqld]   
    default-time-zone=+8:00