I created an RDS instance on AWS (Aurora MySQL with replication). When I start importing an SQL file into the database I get an error message ERROR 2013 (HY000) at line 2805: Lost connection to MySQL server during query
and AWS changes the replication role from writer to reader.
Is there a way to disable changing of the replication role during import or some other way to fix it?