mysql 删除表错误 1051解决

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) 
    原文作者:stormzhai
    原文地址: https://www.jianshu.com/p/4db79f11dbdd
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞