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.