Anyone know if there's a way to catch the database connection object, and change the connection string under it? Basically I want to redirect the commands that don't have the words INSERT, UPDATE, DELETE, EXECUTE or EXEC to another server name which would be a load balancer of sorts.

I browsed the docs, but couldn't find anything that looked right. That said, I'm not a developer by trade.

  • I think you want use master slave. – Nanhe Kumar May 18 '17 at 19:52

You can use Wordpress HyperDB plugin.

  • Are their any better options? This apparently hasn't been updated in 2 years now. – mrdenny May 14 '19 at 23:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.