MySQL 刪除ibdata1 文件後恢復數據

1:新建數據庫和表 2:進入數據庫中,分離表:alter table 表名 discard tablespace; 3:將搜受損的ibd文件拷到新建的表目錄下,並修改表的id與frm對應的一致 vim test.ibd 轉爲2進制文件: %!xxd 修改後,保存退出:%!xxd -r 數據庫 4:進入數據庫中,開始快速導入:alter table 表名 import tablespace; 5:查
相關文章
相關標籤/搜索