我已經設法損壞(或者某個)我有的mysql數據庫中的'sessions'表(它被稱爲「e_learning_resource_prelive」)。這通常不會成爲問題,因爲我可以回到db的備份轉儲。然而,損壞的表似乎阻止我刪除數據庫:Drop在Mysql db中搞砸了桌子
> mysqladmin -u root drop e_learning_resource_prelive
Dropping the database is potentially a very bad thing to do.
Any data stored in the database will be destroyed.
Do you really want to drop the 'e_learning_resource_prelive' database [y/N] y
mysqladmin: DROP DATABASE e_learning_resource_prelive failed;
error: 'Unknown table 'sessions''
當我進入數據庫會話表中show_tables顯示出來(它的存在只有一個,在中mysqladmin降刪除其餘的),但我不能丟棄它:
mysql> show tables;
+---------------------------------------+
| Tables_in_e_learning_resource_prelive |
+---------------------------------------+
| sessions |
+---------------------------------------+
1 row in set (0.00 sec)
mysql> drop table sessions;
ERROR 1051 (42S02): Unknown table 'sessions'
誰能告訴我怎麼可以刪除這張表,或整個分貝?我需要刪除數據庫,然後從我的備份轉儲重建它。
謝謝瓦利,但數據庫是在Linux服務器上,所以我不能運行任何GUI工具來看待它,我想。 – 2010-01-06 08:27:28