By dflancto
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: https://github.com/wpmudev/multi-db
Any help would be much appreciated, thanks
David
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
https://secure.php.net/manual/en/ref.mysql.php
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).
Did a little more digging :-). You might want to check out the following project:
https://github.com/stuttter/ludicrousdb
by
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.