Computer >> Hướng Dẫn Máy Tính >  >> Lập Trình >> MySQL

Backup một bảng cụ thể từ database với mysqldump

Cú pháp backup single table

mysqldump -u root database_name table_name > table_dump.sql

Ví dụ

Backup bảng student_info từ database query ra student_info.sql:

C:\mysql\bin> mysqldump -u root query student_info > student_info.sql

File kết quả chứa DROP TABLE, CREATE TABLE, INSERT cho bảng student_info.