I was facing ERROR 3546 (HY000): @@GLOBAL.GTID_PURGED cannot be changed when restoring previously exported mysql database. The solution is to add --set-gtid-purged=OFF setting when exporting.