How to dump mysql database?
问题 I want to dump mysql database only the tables which have data, Can u please give me your suggestion. this is more helpful Thanks & Regards, Vara Kumar.PJD 回答1: You can use the --ignore-table option, but you have to find out which tables are empty first as this is not directly possible with mysqldump. So you could do mysqldump -u username -p database --ignore-table=database.table1 --ignore-table=database.table2 > database.sql 回答2: mysqldump <database options> table1 table2 table3 ... 回答3: Use