Using master-master mysql db replication in Yii -
i have 2 servers have setup mysql master-master db replication balance db load.
'db'=>array( 'connectionstring' => 'mysql:host=localhost;dbname=mydb', 'emulateprepare' => true, 'username' => 'root', 'password' => 'rootpass', 'charset' => 'utf8', ),
the question have is, mysql determine when use master db ? if not, have connect both of master dbs (how use in application)?
can point me in right direction ? thanks.
Comments
Post a Comment