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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -