简体   繁体   中英

How to make dump data only from selected tables without schema

First I have make it one sql file for only schema get of 64 tables.

Code :

       mysqldump -p<password>  --no-data database > schema.sql

Here, sql file create without data in that file 64 tables now i only need 15 table data from database without schema and create new sql file.

I try my self but it not working.

Code:

  mysqldump  -p<password> database --ignore-table=database.table1 --ignore-table=database.table2 > data.sql

Any merge both file any apply to new database.

Please if any idea so give me some advice.

Thanks in advance...!!!

I am using HeidiSQL for tasks like this - which has a gui and is much simpler for beginners than the commandline.

Also MySQL Workbench is another gui tool.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM