How to code PHP MySQL class for master and slave setup?

前端 未结 4 671
抹茶落季
抹茶落季 2020-12-11 12:38

I have never used a master/slave setup for my mysql databases so please forgive if I make no sense here.

I am curious, let\'s say I want to have a master DB and 3

4条回答
  •  执笔经年
    2020-12-11 13:15

    What you want to use (and research) is MySQL Replication. This is handled completely independent of your code. You work with the database the same as if there were 1 or 100 servers.

提交回复
热议问题