[英]shell command to import a portion of mysql dump of a table (from a specific row)
Specifically: 特别:
is there a reverse command for this: 为此有一个反向命令:
mysqldump --user=... --password=... --host=... DB_NAME --where=<YOUR CLAUSE> > /path/to/output/file.sql
Can i import part of a table dump (from a specific row onwards) thru shell ? 我可以通过shell导入表转储的一部分(从特定行开始)吗?
Situation: have a decent (2G) db table to import from PC to lynux mysql, i succeded to import approx 30% of that table using shell commands, then my connection to ISP went dead. 情况:有一个不错的(2G)db 表从PC导入到lynux mysql,我成功地使用shell命令导入了该表的30%,然后我与ISP的连接断开了。
Problem: 问题:
i wish to continue uploading the dump from the row where it stopped . 我希望继续从停下来的那一行上载转储。 I specifically do not want to create a new dump from the row at wich the import stopped. 我特别不想从导入停止的那一行创建一个新的转储。
Pipe the output of 管道输出
sed -n $ROW,\$p file.sql
to your import command. 导入命令。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.