I would like to create a replica of a database hosted on a VM on my computer (MASTER) to the AWS cloud (SLAVE).
I can connect on the 2 DB from a EC2 instance.
I set the parameters with the AWS script:
mysql> CALL mysql.rds_set_external_master ('<MY.PUBLIC.IP>', 3306, '<username>', '<password>', 'mysqld-bin.0000013', 343, 0);
(Of course my IP, username, and password are hidden here)
But when a start the replication (with the AWS script) it keep beeing stuck with:
mysql> SHOW SLAVE STATUS\G;
*************************** 1. row ***************************
Slave_IO_State: Connecting to master
Master_Host: <MY-PUBLIC-IP> (censored here)
Master_User: slaveuser
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysqld-bin.0000013
Read_Master_Log_Pos: 343
Relay_Log_File: relaylog.000001
Relay_Log_Pos: 4
Relay_Master_Log_File: mysqld-bin.0000013
Slave_IO_Running: Connecting
Slave_SQL_Running: Yes
Replicate_Do_DB:
Replicate_Ignore_DB:
I added my public IP in the RDS's security group with the MYSQL port (didn't change it, still 3306) But nothing, no error in particular (Last_errno: 0 etc...)
What did I missed?