Breaking database into small pieces for transfer
- Posted by wktd on March 21st, 2010 filed in portal.jsqf.com
Ok, I will try tar + gzip. Thanks! no probs :D
backup to sql file using mysqldump
http://mysql.he.net/doc/m/y/mysqldump.html
i.e.
mysqldump --opt -u mysqlusername -p databasename > /path/to/backup.sql
then in telnet/shell, go into the directory containing the sql file and type
tar -cvf - backup.sql gzip -c > backupsql.tar.gz
my 940mb sql file tarred and gzipped is 418MB :)
otherwise you can dump each table at a time or group of tables
mysqldump --opt -u mysqlusername -p databasename tablename1> /path/to/tablename1.sql
mysqldump --opt -u mysqlusername -p databasename tablename2> /path/to/tablename2.sql
etc etc
#If you have any other info about this subject , Please add it free.# |