I am setting up the replication but I am facing issue that the binlog file is not being updated when I am executing any query of insert update or even creating a table. Here My Master my.cnf
server-id = 1
log_bin = /var/log/mysql/mysql-bin.log
expire_logs_days = 10
max_binlog_size = 100M
binlog_do_db = rep_db
My Master Status is as under:
mysql> show master status\G
*************************** 1. row ***************************
File: mysql-bin.000001
Position: 107
Binlog_Do_DB: rep_db
Binlog_Ignore_DB:
1 row in set (0.00 sec)
It was updating the binlog file and position in the Master status but something went wrong and its not being updated.
you can check by below 2 ways-
Method1:use sql statement as per below and check in binlog file-
use rep_db;
Execute your update statement here
Method2: Remove your db from binlog_do_db (now all db will be replicate) for testing and restart mysql service. Now check if logs are updating in binlog file.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.