How to dump only specific tables from MySQL?

后端 未结 2 1384
醉话见心
醉话见心 2020-12-12 14:59

If my database has 10 tables and I want to dump only 3 tables. Is it possible with mysqldump command?

2条回答
  •  甜味超标
    2020-12-12 15:33

    Usage: mysqldump [OPTIONS] database [tables]
    

    i.e.

    mysqldump -u username -p db_name table1_name table2_name table3_name > dump.sql
    

提交回复
热议问题