18 Sep, 2008
Backuping and restoring a single table using mysqldump
Backuping a single table from a database
mysqldump -u -p database_one table_name > /var/www/backups/table_name.sql
Restoring the table into another database
mysql -u -p database_two < /var/www/backups/table_name.sql
For more Linux commands, please refer to:
Love what you've just read? Subscribe to our newsletter to receive tips, resources and special offers related to web development & design.
Other similar posts that you might be interested in:
- Get directory size using Linux command
- 15 tips on optimising MySQL databases and MySQL queries
- Utf-8 encoding problem with MySQL restore
- Links Love Series 2: MySQL server fine tuning and administrating
- Sun acquired MySQL for $1 billion
- Why are my subqueries slow?
- Connecting to mysql from command line (eg: PuTTY, ssh)

Hello! Welcome to Web development blog! My name is Ei Sabai and on this blog, I write about web development, mobile app development, latest web technologies and the likes. Read more 


Always nice to see mysqldump info. You have a better tutorial than most. Keep up the good work!
Thank you!
excellent tips thanks :)
thanks for this nice little tip :)
nice little tip, thanks.
u saved my time :)
Thanks. Concise and helpful
Good tips, I just read another good (and similar) guide here:
http://www.bukisa.com/articles/409623_how-to-backup-a-mysql-database