美文网首页
mysql 删除表错误 1051解决

mysql 删除表错误 1051解决

作者: stormzhai | 来源:发表于2017-03-02 14:24 被阅读1133次

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) 

相关文章

网友评论

      本文标题:mysql 删除表错误 1051解决

      本文链接:https://www.haomeiwen.com/subject/lbnhgttx.html