My database has 3 tables: table1, table2 and table3
I would like to do a mysqldump on this database with the following conditions:
I don't think you can do it in one command. But you definitely can merge the output to one file. Why not to wrap it in some shell script that does following:
mysqldump -u $1 -p$2 -d db > dump.sql && mysqldump -u $1 -p$2 db --ignore-table=db.table3 >> dump.sql
You will run this script with two parameters: username and password.