Home > Article > Backend Development > MySQL read-write separation implemented by PHP_PHP tutorial
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 :