Related table is not found in current database (Error 1880)

A database relation object is being created or referenced for which the related table could not be found.

  • You used the REFERENCES clause of the CREATE TABLE or ALTER TABLE command.

    Make sure both tables involved in the relation are in the database.