MySQL 5.7 Replication Error "Can't create database"
Solution 1:
So in case anyone bumps into this, here's how I solved my issue:
- stop slave;
- reset master;
- set global GTID_PURGED="SET_THIS_TO_MY_MASTER_LAST_KNOWN_GTID"; you can find this out by running
get master status
- show slave status\G
For more information you can check out this helpful article: https://avdeo.com/2015/03/04/restoring-slave-when-gtid-is-enabled-on-master/