wait_timeout specifies the number of seconds that the server waits for a non-interactive idle connection to become active before closing it.
| Attribute | Description |
|---|---|
| Type | Integer |
| 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 defined by the connection option CLIENT_INTERACTIVE in mysql_real_connect(). For more information about the interactive_timeout variable, see interactive_timeout.