Php operations with mysql mutual master-slave

Source: Internet
Author: User
Php operation configuration mysql is mutually master-slave mysql is configured, but how to use php to configure mysql is mutually master-slave, for example, the code of the two servers is consistent, I didn't even understand how to configure it like phpmyadmin & nbsp; but I didn't understand the source code of phpmyadmin ...... master-slave data: blog. csdn. netalexdrea php operation configuration mysql mutual master/slave
Mysql has been configured as the master and slave databases, but how to use php to configure mysql as the master and slave databases, for example, the code of the two servers is consistent, I have no idea how to understand

The configuration is similar to that of phpmyadmin, but the source code of phpmyadmin is not easy to understand ......

Mutual master and slave information: http://blog.csdn.net/alexdream/article/details/3345984 (thanks alexdream ...)
------ Solution --------------------
It is mainly to modify the configuration file,
Then run the shell command,
The blog already understands,
What do you not understand?
------ Solution --------------------
1. modify the my. ini file for the master-slave configuration of mysql. you have done this. However, php is limited to permissions and may not be able to do so.
2. the database and table to be synchronized do not need the same name, so it does not matter whether the code is consistent
3. The data synchronization process is performed by mysql in the background and cannot be intervened in the foreground. Intervention only causes data loss.

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.