I need help setting up a multi db plugin for wordpress multisite.

I have a lemp stack setup connected to the mysql database on a remote server using private networking

I’ve setup the multi db plugin and it seems to work, but when i try to add a new site in wordpress multisite, a message appears - could not create site.

I setup multiple databases on my remote database server and transferred all tables to new database successfully. But when I try to create a new site, it doesn’t work.

The instructions I followed are here:

Any help would be much appreciated, thanks



Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


Did a little more digging :-). You might want to check out the following project:


I’ve not had the chance to tinker with it myself, and it does seem to be quite a bit more advanced in terms of what it’s capable of doing. It’s last update was also 7 hours ago (as of this reply).

It supports mysqli_* with backwards compatibility (as of now) for mysql_*. So it should work on newer and older PHP releases.


The plugin itself hasn’t been updated in 2 years (according to the GitHub page) and currently relies on PHP functions that have been deprecated in PHP 5.5.0 and removed in 7.0.0.

You can find more information on what has been deprecated by checking the link below. Many of the functions here are in use by the plugin.

While it may appear to work, there’s no guarantee that it will continue to work without maintenance or someone updating the plugin to utilize either the newer mysqli_* functions or PDO.

Unless there’s a newer version of the plugin that WPMU is releasing through their members area to their paying customers, the plugin above should be considered outdated and without updates, not ideal or fit for production unless you plan on sticking with an outdated and insecure release of PHP.

The current stable 5.x branch of PHP is 5.6.30 (as of this post).

From what I can see, the alternative is HyperDB, though it too hasn’t been updated in 2 years and relies on the same type of functions (which are deprecated).