Manual:$wgShowDBErrorBacktrace/en

Details
If true, show a backtrace for database errors.