# mysqldump adj_com_tw > adj.sql //執行 mysqldump 並出現如下錯誤訊息
mysqldump: Got error: 1146: Table ‘adj.show_results' doesn't exist when using LOCK TABLES
# mysqldump --skip-lock-tables adj_com_tw > adj.sql
Error: Couldn't read status information for adj.show_results ()
mysqldump: Couldn't execute 'show create table `show_results`': Table 'adj.show_results' doesn't exist (1146)
應該是之前有 deleted and recreated InnoDB data files 但是忘了刪除關聯檔案 .frm ,所以只要把 show_results.frm 檔案拿掉,並重新啟動 mysqld 後,就可順利執行 mysqldump 了。
歡迎光臨 ADJ網路實驗室 (http://dz.adj.idv.tw/) | Powered by Discuz! 6.0.0 |