Manual:$wgSqlTimeout/en

Details
Timeout to kill the DB thread.