I updated my Blog and wiki DB server to handle replication only.

First the wordpress blog is no longer using hyperDB which should really be used with wordpress-mu, but that is another story. Slave mySQL is configured to be ready-only and mediawiki Localsettings is updated with $wgDBservers{}; Seems in order to get this working you have you normal account to read/write to the database on both servers but you also need grant SUPER,REPLICATION CLIENT on *.* to <username>@’<ip>’ identified by ‘somepassword’; also allied to both servers. This way the wiki config doesn’t try to write to the slave although read-only prevents this. Either way I have a working wiki on two DB servers replicated. Next up is to replicate to my Vegas Data Center and Tacoma Data Center.

update here is my LocalSettings.php Config

$wgDisableCounters = true;
## Database settings
##$wgDBtype           = “mysql”;
##$wgDBserver         = “ipaddress”;
##$wgDBname           = “dbname”;
##$wgDBuser           = “username”;
##$wgDBpassword       = “”;
$wgDBServers = true;
$wgMasterWaitTimeOut=1;
$wgClusterTimeOut=1;
$wgDBerrorLog=”/var/log/apache2/wikidberrors.log”;
$wgDBservers = array(
array(
‘host’ => ‘ipaddress’,
‘dbname’ => ‘dbname’,
‘user’ => ‘username’,
‘password’ => ‘password’,
‘type’ => ‘mysql’,
‘load’ => 0,
),
array(
‘host’ => ‘ipaddress’,
‘dbname’ => ‘dbname’,
‘user’ => ‘username’,
‘password’ => ‘password’,
‘type’ => ‘mysql’,
‘load’ => 1,
),
);

VN:F [1.9.3_1094]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.3_1094]
Rating: 0 (from 0 votes)
I updated my Blog and wiki DB server to handle replication only., 10.0 out of 10 based on 1 rating
This entry was posted in News, puters. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>