For example, using --ignore-table, you can export the schema and data of the tables except person and animal tables of apple database to backup.sql as shown below. *You must use multiple --ignore-table to specify multiple tables and you must specify both a database and a table together <database>.<table> for --ignore-table otherwise there is error and my answer explains how to export the schema and data of the tables of a database:
mysqldump -u john -p apple --ignore-table=apple.person --ignore-table=apple.animal > backup.sql
And, using -B(--database) and --ignore-table, you can export the schema and data of apple and orange databases except apple database's person table and orange database's animal table to backup.sql as shown below. *My answer explains how to export the schema and data of multiple databases:
mysqldump -u john -p -B apple orange --ignore-table=apple.person --ignore-table=orange.animal > backup.sql
And, using -A(--all-databases) and --ignore-table, you can export the schema and data of all databases except apple database's person table and orange database's animal table to backup.sql as shown below. *My answer explains how to export the schema and data of all databases:
mysqldump -u john -p -A --ignore-table=apple.person --ignore-table=orange.animal > backup.sql