Skip to content

Commit 6d34f21

Browse files
authored
Merge pull request #266 from CodeXiaoXian/patch-1
MySQL默认最大空闲时长更正
2 parents e865b54 + 15bf29d commit 6d34f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql/base/how_select.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ mysql -h$ip -u$user -p
5959

6060
> 空闲连接会一直占用着吗?
6161
62-
当然不是了,MySQL 定义了空闲连接的最大空闲时长,由 `wait_timeout` 参数控制的,默认值是 8 小时(28880 秒),如果空闲连接超过了这个时间,连接器就会自动将它断开。
62+
当然不是了,MySQL 定义了空闲连接的最大空闲时长,由 `wait_timeout` 参数控制的,默认值是 8 小时(28800 秒),如果空闲连接超过了这个时间,连接器就会自动将它断开。
6363

6464
```sql
6565
mysql> show variables like 'wait_timeout';

0 commit comments

Comments
 (0)