Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysqldump certain tables via prefix_*

Status
Not open for further replies.

blekfis

Programmer
Oct 19, 2001
38
0
0
SE
The normal way to use is:
shell> mysqldump [options] db_name [tables]

Is it possible to do something like this
shell> mysqldump [options] db_name [prefix_*]

I want to backup certain tables from a db which all have the same prefix (xyz_a, xyz_b, xyz_c ... )


 
It seems not, but if you're using a Linux/Unix system, it should not be difficult to write a little script to query the database for matching tables, and use the output to compose the mysqldump command.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top