zoukankan      html  css  js  c++  java
  • MySQL修改数据库时区

    --修改当前会话时区,退出msql后 time_zone 会恢复成修改前的值mysql> set time_zone = '+8:00';
    Query OK, 0 rows affected (0.00 sec)
    
    mysql> show variables like "%time_zone%";
    +------------------+--------+
    | Variable_name    | Value  |
    +------------------+--------+
    | system_time_zone | UTC    |
    | time_zone        | +08:00 |
    +------------------+--------+—-修改全局会话时区mysql> set global time_zone = '+8:00';
    mysql> set time_zone = '+8:00';
    mysql> flush privileges;
    

      

    --查看数据库时区设置mysql> show variables like "%time_zone%";
    +------------------+--------+
    | Variable_name    | Value  |
    +------------------+--------+
    | system_time_zone | UTC    |
    | time_zone        | SYSTEM |
    +------------------+--------+
    

      

  • 相关阅读:
    C# 小算法1
    函数 y=x^x的分析
    随机数
    对拍
    Cube Stack
    Permutation
    一笔画问题
    康托展开&&康托逆展开
    待完成
    小错误 17/8/10
  • 原文地址:https://www.cnblogs.com/lewisat/p/14461707.html
Copyright © 2011-2022 走看看