wait_timeout specifies the time in seconds that the server waits for a non-interactive connection to become active before closing it.
| Property | Description |
|---|---|
| Parameter type | Int |
| Default value | 28800 |
| Value range | [1, 31536000] |
| Effective 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 information about the interactive_timeout variable, see interactive_timeout.