mysql 删除表错误 1051解决
2017-03-02 本文已影响1133人
stormzhai
Simple solution that worked for me.
Try to delete the table.
drop table tableOne;
You will see error:
ERROR 1051 (42S02): Unknown table 'tableOne'
Copy the create statement of that table from another Database or write it.
CREATE TABLE tableOne ( ID int(11) NOT NULL, LOCKED tinyint(1) NOT NULL) ENGINE=InnoDB;
Successful
Query OK, 0 rows affected (0.03 sec)
Drop the table
drop table tableOne;
Successful
Query OK, 0 rows affected (0.01 sec)