database replication - How to code PHP MySQL class for master and slave setup? -
I have never used a master / slave setup for my / mysql database, please forgive me if There is no point here.
I'm curious, suppose I want to be with a Master DB and 3 Das DB. Do I need to add entries in Master DB and add / update / delete entries or is it automated in any way?
In addition to my SELECT query, I will need the code to randomly select random DB server
What you want to use (and research) is that it is completely controlled independently from your code. You work with databases such as 1 or 100 servers.
Comments
Post a Comment