tip@trylinux:~/blog$ cat dumping-a-mysql-table-to-sql.md
# Dumping a mysql table to SQL
Author: tip
Date: 2008-02-06 00:00:00
Tags: General, linux, mysql, reminder, tips

I usually use phpMyAdmin to dump my table to SQL, but sometimes it is easier to do it from the command line. Use the following syntax to dump a table to SQL.

mysqldump -p -e -c --add-drop-table -r table.sql dbname table

Warning : The --add-drop-table will cause it to drop the existing table when you import.

You can import this with the command

mysql -p dbname < table.sql

EOF