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:

  1. stop slave;
  2. reset master;
  3. set global GTID_PURGED="SET_THIS_TO_MY_MASTER_LAST_KNOWN_GTID"; you can find this out by running get master status
  4. 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/