close
Warning:
Can't synchronize with repository "(default)" (Unsupported version control system "svn": libsvn_diff-1.so.1: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.
- Timestamp:
-
Sep 12, 2017, 4:57:03 PM (9 years ago)
- Author:
-
jazz
- Comment:
-
--
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v2
|
v3
|
|
| 49 | 49 | 17 rows in set (0.00 sec) |
| 50 | 50 | }}} |
| 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 |
| 52 | 54 | {{{ |
| 53 | 55 | mysql> SHOW VARIABLES where Variable_name like 'wait%'; |
| … |
… |
|
| 59 | 61 | 1 row in set (0.00 sec) |
| 60 | 62 | }}} |
| | 63 | ** 可以 runtime 修改 |
| | 64 | {{{ |
| | 65 | mysql> set global wait_timeout=60; |
| | 66 | mysql> set session wait_timeout=60; |
| | 67 | mysql> SHOW VARIABLES where Variable_name like 'wait%'; |
| | 68 | +---------------+-------+ |
| | 69 | | Variable_name | Value | |
| | 70 | +---------------+-------+ |
| | 71 | | wait_timeout | 60 | |
| | 72 | +---------------+-------+ |
| | 73 | 1 row in set (0.00 sec) |
| | 74 | }}} |