shell pipe behavior with MySQLDump
Posted
by unknown (google)
on Server Fault
See other posts from Server Fault
or by unknown (google)
Published on 2010-01-11T08:10:37Z
Indexed on
2010/04/19
19:04 UTC
Read the original article
Hit count: 198
I am using mysqldump for a large database (several GB) and import the result from a pipe, please see commands below, does it do incremental pipe, or wait until the first one finishes then import? is this a good way of importing large db across servers? I know you can export gz it, then pscp it then import. Quick alternative are welcome
mysqldump -u root -ppass -q mydatabase | mysql -u root -ppass --host=xxx.xx.xxx.xx --port=3306 -C mydatabase
© Server Fault or respective owner