wait_timeout specifies the time in seconds that the server waits for a non-interactive connection to become active before closing it.
| Attribute | Description |
|---|---|
| Type | INT |
| Default value | 28800 |
| Value range | [1, 31536000] |
| Applicable scope |
When a session is initiated, the value of wait_timeout for the session is initialized based on the value of the global wait_timeout variable or the global interactive_timeout variable, depending on the client type. The client type is determined by the CLIENT_INTERACTIVE option in mysql_real_connect(). For more information about the interactive_timeout variable, see interactive_timeout.