简体   繁体   English

如何使用phpmyadmin删除标记为“正在使用中”的表格

[英]How can I delete tables marked 'in use' using phpmyadmin

As in title. 如标题。 When I try to drop these tables I see something like this: 当我尝试删除这些表时,我看到这样的事情:

1051: Unknown table 'urls_count' 1051:未知表'urls_count'

Tables are marked as 'in use': 表格标记为“正在使用中”:

问题的截图

I have checked that no application is using these table, as this is new database on my server and is not connected anywhere. 我已经检查过没有应用程序正在使用这些表,因为这是我服务器上的新数据库,并且没有连接任何地方。 Also there are no dependencies between these tables. 这些表之间也没有依赖关系。 I tried to repair these tables, optimize them, check them, and whatever actions I can run, even if it seems bit awkward, but I still cant get rid of them. 我试图修复这些表,优化它们,检查它们,以及我可以运行的任何动作,即使它看起来有点尴尬,但我仍然无法摆脱它们。

How can I delete them? 我该如何删除它们?


Web server configuration: Web服务器配置:

cpsrvd 11.32.2.28, MySQL client version: 5.0.95, PHP extension: mysql cpsrvd 11.32.2.28,MySQL客户端版本:5.0.95,PHP扩展名:mysql

MySQL configuration: MySQL配置:

Server: Localhost via UNIX socket, Server version: 5.0.95-community, Protocol version: 10, MySQL charset: UTF-8 Unicode (utf8) 服务器:通过UNIX套接字的Localhost,服务器版本:5.0.95-community,协议版本:10,MySQL字符集:UTF-8 Unicode(utf8)

PHPmyadmin version: 3.4.10.1 PHPmyadmin版本: 3.4.10.1

If you have shell access, try this; 如果你有shell访问权限,试试这个;

cd /var/lib/mysql/DATABASE (where DATABASE is the one you're trying to fix) cd / var / lib / mysql / DATABASE(其中DATABASE是你要修复的那个)

myisamchk --safe-recover TABLE (where TABLE is the table you are tring to fix) myisamchk --safe-recover TABLE(其中TABLE是您要修复的表)

This will will repair the table in safemode, and SHOULD result in success. 这将以安全模式修复表,并且应该会成功。

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

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