使用mysqldump导出数据时,可以用下面的命令排除不需要的表
mysqldump -uxxx -pxxx database --ignore-table=database.table1 --ignore-table=database.table2 > backup.sql