How to configure install semi-synchronous replication in MySQL 5.5

Source: Internet
Author: User

Confirm that the have_dynamic_loading is open on master and slave

Master

MASTER (none) 10:54:58>show variables like ' have_dynamic_loading ';

+----------------------+-------+

| variable_name | Value |

+----------------------+-------+

| have_dynamic_loading | YES |

+----------------------+-------+

Slave

Slavetest 10:47:52>show variables like ' have_dynamic_loading ';

+----------------------+-------+

| variable_name | Value |

+----------------------+-------+

| have_dynamic_loading | YES |

+----------------------+-------+

Install a half-sync plugin on master using root

MASTER (None) 10:58:14>

MASTER (none) 10:58:14>install plugin rpl_semi_sync_master soname ' semisync_master.so ';

Query OK, 0 rows affected (0.01 sec)

MASTER (none) 10:58:22>show plugins;

+--------------------------+--------+--------------------+--------------------+---------+

| Name | Status | Type | Library | License |

+--------------------------+--------+--------------------+--------------------+---------+

| Binlog | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Mysql_native_password | ACTIVE | Authentication | NULL | GPL |

| Mysql_old_password | ACTIVE | Authentication | NULL | GPL |

| Mrg_myisam | ACTIVE | STORAGE ENGINE | NULL | GPL |

| CSV | ACTIVE | STORAGE ENGINE | NULL | GPL |

| MEMORY | ACTIVE | STORAGE ENGINE | NULL | GPL |

| MyISAM | ACTIVE | STORAGE ENGINE | NULL | GPL |

| InnoDB | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Innodb_trx | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_locks | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_lock_waits | ACTIVE | Information SCHEMA | NULL | GPL |

| innodb_cmp | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_cmp_reset | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_cmpmem | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_cmpmem_reset | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_buffer_page | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_buffer_page_lru | ACTIVE | Information SCHEMA | NULL | GPL |

| Innodb_buffer_pool_stats | ACTIVE | Information SCHEMA | NULL | GPL |

| Blackhole | ACTIVE | STORAGE ENGINE | NULL | GPL |

| ARCHIVE | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Federated | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Performance_schema | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Partition | ACTIVE | STORAGE ENGINE | NULL | GPL |

| Rpl_semi_sync_master | ACTIVE | REPLICATION | semisync_master.so | GPL |

+--------------------------+--------+--------------------+--------------------+---------+

This column more highlights: http://www.bianceng.cn/database/MySQL/

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.