Replicating from a higher to lower MySQL version
Replicating from a 5.6 master to a 5.5 slave
The following parameters need to be present on a 5.6 master's my.cnf to be able to replicate to a lower version slave:slave_sql_verify_checksum = OFF binlog_checksum = NONE log_bin_use_v1_row_events=1 binlog_row_image=FULL gtid_mode=OFFNOTE: remember to bounce the server after any needed parameter changes The temporal datatypes (TIME/DATETIME/TIMESTAMP) support fractional values starting from MySQL 5.6.4. Hence the storage requirement and encoding differ in comparison to pre-MySQL 5.6.4 temporal datatypes. For this reason, writing to tables with columns using any of (TIME/DATETIME/TIMESTAMP) created AFTER the upgrade to 5.6 will break replication to 5.5, unless the binlog format is set to STATEMENT. Replicating back temporal columns using the new format in ROW based format will not work. If using MIXED binlog format, unsafe statements are logged using ROW format, so it may or may not work depending on the presence of said unsafe statements.
Replicating from a 5.7 master to a 5.6 slave
There is no need for any special my.cnf parameters on this case. However, there is a bug with ignorable events in older MySQL 5.6 versions that prevents replication from a 5.7 master. This is fixed on 5.6.24, so if you want to replicate from 5.7 master to 5.6, make sure the slave is using MySQL >=5.6.24. Finally, avoid using SET PASSWORD statements (those are deprecated anyway), as they will lock you out of your slave in a mixed 5.7/5.6 topology. You can use ALTER USER user IDENTIFIED BY 'auth_string'; instead. There is a bug reported about this as well (closed as Won't fix).Conclusion
While not a supported configuration, replicating from a higher to lower MySQL version is still possible. Keep in mind that there may be some edge cases where you still encounter problems. I look forward to hearing about your experiences in the comments section below.On this page
Share this
Share this
More resources
Learn more about Pythian by reading the following blogs and articles.
Asynchronous replication from MySQL cluster

Asynchronous replication from MySQL cluster
Mar 20, 2017 12:00:00 AM
6
min read
How to enable binary logging on an Amazon RDS read replica

How to enable binary logging on an Amazon RDS read replica
Feb 8, 2018 12:00:00 AM
3
min read
pt-online -schema corner case: When you don’t want to replicate your alter activities across the whole cluster.
pt-online -schema corner case: When you don’t want to replicate your alter activities across the whole cluster.
Nov 21, 2022 12:00:00 AM
5
min read
Ready to unlock value from your data?
With Pythian, you can accomplish your data transformation goals and more.