Changes between Version 2 and Version 3 of jazz/MySQL


Ignore:
Timestamp:
Sep 12, 2017, 4:57:03 PM (7 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/MySQL

    v2 v3  
    494917 rows in set (0.00 sec)
    5050}}}
    51 * 查詢目前的連線等待時間 - [參考] https://stackoverflow.com/questions/23399111/safely-keeping-mysql-connections-alive
     51* 查詢目前的連線等待時間
     52** [參考] https://stackoverflow.com/questions/23399111/safely-keeping-mysql-connections-alive
     53** 預設值是 28800 seconds
    5254{{{
    5355mysql> SHOW VARIABLES where Variable_name like 'wait%';
     
    59611 row in set (0.00 sec)
    6062}}}
     63** 可以 runtime 修改
     64{{{
     65mysql> set global wait_timeout=60;
     66mysql> set session wait_timeout=60;
     67mysql> SHOW VARIABLES where Variable_name like 'wait%';
     68+---------------+-------+
     69| Variable_name | Value |
     70+---------------+-------+
     71| wait_timeout  | 60    |
     72+---------------+-------+
     731 row in set (0.00 sec)
     74}}}