Error code

MySQL 1051

MYSQL1051
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

Unknown table — a DROP or query referenced a table that does not exist.

How to fix it

  1. Use DROP TABLE IF EXISTS to suppress the error when the table may not exist.
  2. Verify the table name and selected database with SHOW TABLES.
  3. Check whether a prior migration already removed the table and the statement is being re-run.

Not affiliated with MySQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.