PHP implementation of MySQL read-write separation _php tutorial

Source: Internet
Author: User
php100 Editor's recommendation "

Hope to bring help to the needy friends.

PHP implementation of MySQL read-write separation

Key Features :

1. Simple Read and write separation

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

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

4. Cons: Connect two databases at a time

English is bad, 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 :


http://www.bkjia.com/PHPjc/446635.html www.bkjia.com true http://www.bkjia.com/PHPjc/446635.html techarticle php100 Editor's recommendation "hope to bring help to friends in need." PHP implementation of the MySQL read and write separation of the main features: 1. Simple Read and write separation 2. A master database, you can add more only ...

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.