Backuping a single table from a database

mysqldump -u -p database1 table_name > /home/backups/table_name.sql

Restoring the table into another database

mysql -u -p database2 < /home/backups/table_name.sql

Advertisements