2013-07-27 41 views
0

我的一張桌子最近消失了!mysql丟失了表product_attribute_groups

當我運行:「節目表」中,「product_attribute_groups」上市,但是當我運行「選擇product_attribute_groups *」的MySQL返回錯誤:「#1146 - 表‘product_attribute_groups’不存在」

我企圖把我的數據庫,MySQL的返回錯誤:「1146:使用LOCK TABLES時表‘product_attribute_groups’不存在」

請幫我恢復此表和備份我的分貝。

+0

什麼是存儲引擎? – eggyal

+0

我有同樣的 - 「lower_case_table_names」是原因 – jaczes

+0

eggyal:InnoDB(Mysql 5.6.12-2)。你是怎麼解決這個問題的?請告訴我更多詳情 – Kevin

回答

1

*以大寫形式創建的表,按照您的應用程序要求設置lower_case_table_names。

* table is corrupt,repair the table。

如果以上所有點均可用,則使用--skip-lock-tables帶mysqldump的參數。

我相信這會解決錯誤。

+0

「repair table product_attribute_groups」| db_giaonhan.product_attribute_groups |修復|錯誤|表'db_giaonhan.product_attribute_groups'不存在| | db_giaonhan.product_attribute_groups |修復|狀態|操作失敗 – Kevin

+0

..檢查您是否在桌面上使用正確的權限。使用命令檢查表是否存在「mysqlcheck -u mysql_username -p數據庫名稱」 這將檢查並修復任何提供給它的數據庫和表。但是,如果這不起作用告訴我的MySQL引擎,你有沒有移植你的數據庫? – developerCK

+0

我的數據庫有168個表,mysqlcheck -u mysql_username -p database_name打印出所有表,除了product_attributes_groups(表不存在。status:操作失敗)。該服務器是Centos 5.8,運行MySQL社區服務器5.6.12-1,Innodb引擎。我試圖轉儲我的數據庫,mysql返回錯誤:「1146:表'db_giaonhan.product_attribute_groups'不存在時使用鎖定表」 – Kevin