How can I dump a specific table or set of tables without including the rest of the db tables?
Tell me more
×
Database Administrators Stack Exchange is a question and answer site for
database professionals who wish to improve their database skills and learn from others in the community. It's 100% free, no registration required.
|
|
If you are dumping tables t1, t2, and t3 from mydb
If you have a ton of tables in mydb and you want to dump everything except t1, t2, and t3, do this:
Give it a Try !!! |
|||||||
|
|
A note to expand on the answer by RolandoMySQLDBA. The script he included is a great approach for including ( If you just need to exclude one or two tables, you can exclude them individually with the
|
||||
|
|
|
When you have more than a few tables it is much better running something like this:
or somethink like this:
|
||||
|
|
|
You can try some GUI clients like SQLyog. Where you can select the tables which you want to dump. |
|||
|
|
|
Just add the table name with database name in the
|
||||
|
|