Manual:$wgAllDBsAreLocalhost

Details
Make all database connections secretly go to localhost. Fool the load balancer thinking there is an arbitrarily large cluster of servers to connect to. Useful for debugging.