Manual:$wgSqlTimeout

Database settings: $wgSqlTimeout
Timeout to kill the DB thread (in seconds).
Introduced in version:1.2.0
Removed in version:1.5.0
Allowed values:Unspecified
Default value:30

Details

edit

Timeout to kill the DB thread.