Dump a single table to a SQL file:
mysqldump -uuser -ppassword dbName tableName > backup.sql
If you want to get or restore a single table from a large MySQL dump file you can use the following methods:
Using AWK
Using Ruby
Using Perl:
Invocation:
perl gettablefromdump.pl tablename dumpfile.sql Related Posts:- [mysql] Drop all tables in database without recreating it
- [mysql] InnoDB storage engine is not supported
- [tar] Removing leading '/' from member names
- Install and secure LAMP on CentOS
- Debian LAMP + nginx installation for high-loaded webservers
- [windows] Copy files older than X days
- Web interfaces for BIND management
