I am creating Master Slave Replication. Master Configuration is as below
server-id=1
log-bin=mysql-bin
binlog_format=ROW
Created The user and Assign the Replication Privilege.
GRANT REPLICATION SLAVE ON . TO 'slaveuser'@'%' IDENTIFIED BY 'password'; Flush Privileges;
Slave Configuration:
server-id=2
relay_log=relay-log
skip-slave-start
CHANGE MASTER TO
MASTER_HOST='master Ip',
MASTER_USER='slaveuser',
Master_Port=8801;
MASTER_PASSWORD='password',
MASTER_LOG_FILE='mysql-bin.000010',
MASTER_LOG_POS=107;
starting the slave
Start Slave
Its Not able to connect with master its raised an error as below.
Slave_IO_State: Connecting to master
Master_Host: Master Ip
Master_User: slaveuser
Master_Port: 8801
Connect_Retry: 60
Master_Log_File: mysql-bin.000010
Read_Master_Log_Pos: 107
Relay_Log_File: mysql-relay-bin.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysql-bin.000010
**Slave_IO_Running: No**
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 0
Last_Error:
Skip_Counter: 0
Exec_Master_Log_Pos: 107
Relay_Log_Space: 106
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: No
Master_SSL_CA_File:
Master_SSL_CA_Path:
Master_SSL_Cert:
Master_SSL_Cipher:
Master_SSL_Key:
Seconds_Behind_Master: NULL
Master_SSL_Verify_Server_Cert: No
**Last_IO_Errno: 2003
Last_IO_Error: error connecting to master 'slaveuser@master_ip:8801' - retry-time: 60 retries: 86400**
Last_SQL_Errno: 0
Last_SQL_Error:
When I try to connect the master using slave credential I am able to connect on specific port 8801.But in slave Status its shows that is connection problem. what to do as I dint Find any better suggestion on the web.