MySQL 5.5 Master/Slave Server Configuration

Source: Internet
Author: User

Http://www.linuxidc.com/Linux/2013-05/84785p2.htm

Http://www.linuxidc.com/Linux/2013-04/82712.htm

MySQL Master/Slave:

Master my. CNF:
BINLOG-format = row
Log-slave-Updates = true
Gtid-mode = on
Enforce-gtid-Consistency = true
Master-Info-repository = table
Relay-log-Info-repository = table
Sync-master-Info = 1
Slave-parallel-workers = 2
BINLOG-checksum = CRC32
Master-verify-checksum = 1
Slave-SQL-verify-checksum = 1
Binlog-rows-query-log_events = 1
Server-id = 11
Report-Port = 33061
Log-bin = master-bin.log
Report-host = master.trade2cn.com
Innodb_flush_log_at_trx_commit = 1
Sync_binlog = 1

From my. CNF:
BINLOG-format = row
Log-slave-Updates = true
Gtid-mode = on
Enforce-gtid-Consistency = true
Master-Info-repository = table
Relay-log-Info-repository = table
Sync-master-Info = 1
Slave-parallel-workers = 2
BINLOG-checksum = CRC32
Master-verify-checksum = 1
Slave-SQL-verify-checksum = 1
Binlog-rows-query-log_events = 1
Server-id = 12
Report-Port = 33062
Log-bin = slave-bin.log
Report-host = slave.trade2cn.com
Innodb_flush_log_at_trx_commit = 1
Sync_binlog = 1

Start the MySQL server and check whether the gtid function is enabled on the Master/Slave server.
Master mysql-> show global variables like '% gtid % ';

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.