Skip to content

Commit

Permalink
MySQL默认最大空闲时长更正
Browse files Browse the repository at this point in the history
默认最大空闲时长是28800秒
  • Loading branch information
CodeXiaoXian authored Jul 29, 2024
1 parent 68b4ef9 commit 15bf29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mysql/base/how_select.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ mysql -h$ip -u$user -p

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

```sql
mysql> show variables like 'wait_timeout';
Expand Down

0 comments on commit 15bf29d

Please sign in to comment.