Home >Backend Development >PHP Tutorial >MySQL read-write separation implemented by PHP_PHP tutorial

MySQL read-write separation implemented by PHP_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:25:55806browse

php100 editor recommends "

I hope it will help friends in need.

Mysql read-write separation implemented by PHP

Main features:

1. Simple read-write separation

2. One main database, you can add more read-only databases

3. Read and write separation but don’t worry about some features not being supported

4. Disadvantages: Connect two at the same time Database

English is poor, please write a few words

php code for mysql read/write split
feature:
simply rw split
one master, can add more slaves
support all mysql feature
link to the master and slave at the same time

PHP code :


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446635.htmlTechArticlephp100 Editor Recommendation《Hope to bring help to friends in need. Main features of Mysql read-write separation implemented by PHP: 1. Simple read-write separation 2. A master database, you can add more...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn