Link to home
Start Free TrialLog in
Avatar of nainil
nainilFlag for United States of America

asked on

Mysqldump for all except one table


I am using mysqldump --opt -u username -p databasename table1 table2 table3 ... to create a dumo of my database for specific tables.

However, now, I want to take backup of whole database (55+ tables), except 1

what is the optimal way to issue the mysqldump without listing 54 table names (excluding one table in the database)
ASKER CERTIFIED SOLUTION
Avatar of computerstreber
computerstreber
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
FYI - To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names, e.g. --ignore-table=database.table