Hướng dẫn frm and ibd files in mysql - các tệp frm và ibd trong mysql

Tôi thực sự đánh giá cao ECD. Những gì làm việc cho tôi:

1.- Tôi đã có một bản sao lưu của cơ sở một vài tháng trước, điều này đã giúp tôi nâng bản sao lưu này trong XAMPP trong Windows 10 và tạo các bảng để có cấu trúc [Cấu hình: Windows 10, XAMPP-Windows-X64-7.1.30- 5-VC14] Tệp cấu hình MySQL My.ini ở cuối I had a backup of the base a few months ago this helped me to lift this backup in xampp in Windows 10 and create the tables to have the structure [configuration: Windows 10, xampp-windows-x64-7.1.30-5-VC14] mysql my.ini configuration file at the end

NOTE: Some tables did not have ROW_FORMAT = COMPACT, so I went to operations on each 
    table and changed it manually.
    [If I did not do that, an error appeared and I did not let the import].

NOTE2: I had the backup of months ago but it should also work by first recovering 
    the structure of the .frm files in case of not having a backup at hand.
    [You can try this link:
    //www.percona.com/blog/2014/01/02/recover-table-structure-frm-files-mysql- 
    utilities/]

2.- Có cơ sở dữ liệu cũ, tôi đã tiến hành thực hiện không gian bảng thay đổi XXX cho mỗi bảng trong cơ sở dữ liệu mà tôi muốn khôi phục, sau đó các tệp .ibd của thư mục dữ liệu trong C: / XAMPP / MySQL / Data / System đã bị xóa [trong trường hợp này là con đường này] Having the old database up, I proceeded to execute alter table xxx discard tablespace for each table in the database that I wanted to recover, then the .ibd files of the data folder in C: / xampp / mysql / data / system had been deleted [in this case it is this path]

3.- Tôi đã tiến hành sao chép các tệp .ibd từ cơ sở dữ liệu tôi muốn khôi phục vào thư mục XAMPP của cơ sở dữ liệu cũ I proceeded to copy the .ibd files from the database I wanted to recover to the xampp folder of the old database

4.- Có các tệp được sao chép, chạy: thay đổi không gian bảng nhập bảng xxx cho mỗi bảng trong cơ sở dữ liệu, cảnh báo sẽ xuất hiện nhưng chúng tôi sẽ bỏ qua nó, dữ liệu sẽ được tải trong bảng và có thể được xuất sau. Having the files copied, run: alter table xxx import tablespace For each table in the database, a warning will appear but we will ignore it, the data will be loaded in the table and can be exported later.

5.- Xuất toàn bộ cơ sở dữ liệu vào một tệp SQL và tiến hành xây dựng nó trong sản xuất và thành công! Export the entire database into an sql file and proceed to build it in production and success!

# Example MySQL config file for small systems.
#
# This is for a system with little memory [

Bài Viết Liên Quan

Chủ Đề