elfortin32
elfortin32

Reputation: 41

RDS MySQL 5.5 replication to External server (ec2)

I'm looking for some help with a specific issue trying to migrate an RDS MySQL to a external server.

Below is the arquitecture:

The idea is:

I read all these documentation:

https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Exporting.NonRDSRepl.html https://www.percona.com/blog/2018/07/04/how-to-setup-replication-between-aws-aurora-external-mysql-instance/ https://www.aws.ps/how-to-configure-rds-replication-between-aurora-and-remote-mysql-server/

But in all cases, When i want to grant replication slave privileges for the new user created in RDS instance, i get this error:

mysql> GRANT REPLICATION SLAVE,REPLICATION CLIENT ON *.* TO 'reply'@'%';
ERROR 1045 (28000): Access denied for user 'admin'@'%' (using password: YES)

so, when i check the salve status on the new MySQL instance, i get this:

Master command COM_REGISTER_SLAVE failed: Access denied for user 'reply'@'%' (using password: YES) (Errno: 1045)

I also notice that que MySQL version of all the documentation that y read is about RDS 5.6 and later.

so...

anyone ever had this problem? does anyone experiencie about migration from RDS mySQL 5.5 to External MySQL instance? I don't known if it's a specific problem related the mysql RDS version (5.5).

Maybe "GRANT REPLICATION SLAVE" doesn't exist in RDS MySQL 5.5 ¿?

I look forwar to if you need more information.

Thankyou for your time! :D

King regards.

Iván.

Upvotes: 4

Views: 212

Answers (1)

Severalnines
Severalnines

Reputation: 311

It looks like the current user can’t assign privileges:

ERROR 1045 (28000): Access denied for user 'admin'@'%' (using password: YES)

So in this case, you should check if you created the admin user and if you have grant privileges (WITH GRANT OPTION).

You can run the following command to know the privileges of the current user:

$ show grants\G

Upvotes: 0

Related Questions