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

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -