I'm very new to MYSQL Replication and whilst attempting to learn a thing or 2 I can across a problem which I was not able to resolve. Attempting to configure Master - Slave replication with the following config:
Master:
[mysqld]
bind-address=10.0.0.4
# Server Id
server-id=1
# Binary Logging.
log-bin="C:\ProgramData\MySQL\MySQL Server 5.7\db-binlog\log-bin.log"
log-bin-index="C:\ProgramData\MySQL\MySQL Server 5.7\db-binlog\log-bin.index"
binlog-do-db="dbname"
Slave
[mysqld]
bind-address=10.0.0.5
# Server Id
server-id=2
# Binary Logging.
relay-log="C:\ProgramData\MySQL\MySQL Server 5.7\relay-log\mysql-relay.log"
relay-log-index="C:\ProgramData\MySQL\MySQL Server 5.7\relay-log\mysql-relay-log.index"
log-bin="C:\ProgramData\MySQL\MySQL Server 5.7\log-bin\log-bin.log"
binlog-do-db="dbname"
When I execute CHANGE MASTER TO MASTER_HOST='10.0.0.4',MASTER_USER='db-slave', MASTER_PASSWORD='password', MASTER_LOG_FILE='log-bin.000002', MASTER_LOG_POS= 309;
I get an error saying: