Dump og gendan en enkelt tabel fra .sql
Dump
mysqldump db_name table_name > table_name.sql
Dumping fra en ekstern database
mysqldump -u <db_username> -h <db_host> -p db_name table_name > table_name.sql
For yderligere reference:
http://www.abbeyworkshop.com/howto/lamp/MySQL_Export_Backup/index .html
Gendan
mysql -u <user_name> -p db_name
mysql> source <full_path>/table_name.sql
eller på én linje
mysql -u username -p db_name < /path/to/table_name.sql
Dump og gendan en enkelt tabel fra et komprimeret (.sql.gz) format
Kredit:John McGrath
Dump
mysqldump db_name table_name | gzip > table_name.sql.gz
Gendan
gunzip < table_name.sql.gz | mysql -u username -p db_name