This should be fine.I think I've tried with a variety of mysql versions including newer and older versions of mariadb, and also mysql community server which I assume you are referring to. I couldn't say for sure I've used 5.7 however it is rare to have any troubles between different versions of this software.Different versions of php is a different matter however.