Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ignore one table with mysqldump?

I have this big database (100+ tables and 30+ million rows) that is being a pain in the ass to import back from a full backup.

Problem is that one table contains most of the data (about 27 million rows) and is entirely static. So I was wondering if it was possible to specify 1 table to ignore when creating a backup with mysqldump (instead of listing every table but the one I want to ignore)

like image 671
Charles Avatar asked Dec 09 '10 19:12

Charles


1 Answers

Use '--ignore-table=db_name.tbl_name'.

like image 161
martin clayton Avatar answered Sep 22 '22 02:09

martin clayton