简体   繁体   English

可见表在phpmyadmin中不存在

[英]visible table does not exist in phpmyadmin

In mysqlworkbench, I created a view, committed it to the database, but I no longer needed it. 在mysqlworkbench中,我创建了一个视图,并将其提交给数据库,但是不再需要它。 As such, I deleted the view in mysql workbench and then updated the database. 因此,我删除了mysql工作台中的视图,然后更新了数据库。

I thought all was fine, however in phpmyadmin, it says that the table still exists. 我以为一切都很好,但是在phpmyadmin中,它说该表仍然存在。 What's more, it is constantly in use. 而且,它一直在使用。

I tried to drop the table within phpmyadmin, however when I try to drop the table, it provides an error message saying: 我试图在phpmyadmin中删除该表,但是当我尝试删除该表时,它提供了一条错误消息:

1051 - Unknown table ... indicating to me that the table is not there. 1051-未知表...向我指示该表不存在。

but it still remains showing in the database, and under collation, it says that the table is 'in use'. 但它仍保留显示在数据库中,并且在排序规则下,该表表示“正在使用中”。

Any advice here? 有什么建议吗?

Problem solved. 问题解决了。

It appears as though you cannot delete a view from the database by normal means. 似乎您无法通过常规方法从数据库中删除视图。 The following solved the problem for me. 以下为我解决了这个问题。

DROP VIEW IF EXISTS viewName;

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM