MySQL master-Slave synchronization configuration

Source: Internet
Author: User
1. Note: Before synchronizing, be sure to authorize the operation to the from server grant all slave on * * to [E- Mail protected] identified by ' Pass ' view Binlog show Master Stat us Clear Binlogreset Master;2, General master server to add, delete, change, read from the server. If the demand for real-time operation is high, then read data directly from the primary server 3, modify the Binlog from the server my.cnf, and set server-idlog-bin = Mysql-binserver-id = 2master-host= 192.168.0.1master-user=usermaster-password=pass 4, restart MySQL service pkill mysqld/usr/local/mysql/bin/mysqld_safe--user= mysql& 5, view status show slave status\g

MySQL master-Slave synchronization configuration

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.