Checks a MySQL database for invalid foreign keys, i.e., a keys pointing to missing rows.