Save on two database don't work correctly
-
Hello,
my configuration are the follow;
$wpdb->add_database(array( 'host' => 'localhost', // If port is other than 3306, use host:port. 'user' => 'marc', 'password' => 'bla5342', 'name' => 'wp-one', 'write' => 1 )); $wpdb->add_database(array( 'host' => 'localhost', // If port is other than 3306, use host:port. 'user' => 'marc', 'password' => 'bla5342', 'name' => 'wp-one', 'write' => 1, 'read' => 1, 'dataset' => 'global', 'timeout' => 0.2, )); /** Sample Configuration 2: Partitioning **/ /** * This example shows a setup where the multisite blog tables have been * separated from the global dataset. * define('DB_NAME', 'admin'); */ $wpdb->add_database(array( 'host' => 'dbhost2Onlysavewanted.net', // If port is other than 3306, use host:port. 'user' => 'marc', 'password' => 'bla123', 'name' => 'wp-two', 'dataset' => 'global', 'write' => 1, 'read' => 0 ));
But when i update something on wp-one, few times work well and update wp-one and wp-two… and on random times update only wp-two or wp-one.
?How to fix this? i want update two bases when update post or something..
Thanks in advance
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Save on two database don't work correctly’ is closed to new replies.