zoukankan      html  css  js  c++  java
  • 修改mysql数据库的休眠时间

    1.查看当前休眠时间(默认为八个小时,单位是秒)

    mysql> show global variables like 'wait_timeout';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | wait_timeout  | 28800 |
    +---------------+-------+
    1 row in set (0.01 sec)

    mysql> show session variables like 'wait_timeout';
    +---------------+-------+
    | Variable_name | Value |
    +---------------+-------+
    | wait_timeout  | 28800 |
    +---------------+-------+
    1 row in set (0.00 sec)

    2.修改休眠时间(一个小时)

    mysql> set global wait_timeout = 3600;
    Query OK, 0 rows affected (0.00 sec)

    mysql> set session wait_timeout = 3600;
    Query OK, 0 rows affected (0.00 sec)

  • 相关阅读:
    F. 数学上来先打表
    LibreOJ β Round #2
    noip飞扬的小鸟
    jxoi2017
    分块算法
    Chino的数列
    cf 613E
    cf 126D
    cf 542E
    cf 512D
  • 原文地址:https://www.cnblogs.com/gwxppg/p/12102305.html
Copyright © 2011-2022 走看看