MySQL Silently Ignores Foreign Keys
dev.mysql.com
dev.mysql.com
This behavior is similar to CHECK constraints in years past where MySQL would parse them but had no actual support for the feature until very recently.
The days of MySQL gotchas is apparently far from over.