Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

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!
Thanks for the tutorial!
Should I be installing HyperDB on Wordpress-2 as well? Or would the installation on Wordpress-1 suffice?
Hi, I have successfully set up the MySQL replication using two MySQL servers. I have tested creating sample posts and both database servers wrote them down successfully.
Now this is still an empty Wordpress and an empty database server. I plan to move a live site into this replication set up and this is my question: If I do a mysqldump and restore the dump to the master MySQL server, will the slave picks up the dump right away?
Thanks.
@manicas i have an app in php framework. what to do for other php application not wordpress? i mean HyperDB alternative.
@Mitchell I REALLY need some help here, please…!! I have it all working beautifully, to a point.
I have a master and Slave set up, all replicating the databases between them, however, as soon as I add the db.php to the wp-content folder, i.e. to “activate” it, when I try and add a new post or a page, I get a page without the content entry boxes, and a warning “You are currently editing the page that shows your latest posts.”
There obviously something I am missing? A seeting in HyperDB ??? My config looks like this…
in wp-config.php: /** MySQL hostname */ define(‘DB_HOST’, ‘10.2.243.11’); define(‘DB_SLAVE_1’, ‘10.2.243.12’);
In db-config.php:
I have commented out the first instance of the DB_HOST as told to by the comments, as the primary server obviously exists in wp-config.php.
$wpdb->add_database(array( /**‘host’ => DB_HOST, // If port is other than 3306, use host:port.*/ ‘host’ => DB_SLAVE_1, // If port is other than 3306, use host:port. ‘user’ => DB_USER, ‘password’ => DB_PASSWORD, ‘name’ => DB_NAME, ‘write’ => 0, ‘read’ => 1, ‘dataset’ => ‘global’, ‘timeout’ => 0.2, ));
Have you got any ideas? Much appreciated in advance ;¬)
Hello, Thank you for the awesome article, very complete and detailed.
Are you planning on updating it (it’s years old now), and maybe optionally adding the DO’s Managed Database configuration to the recipe?
Thank you!