Mysqldump导出额外的记录而不是在其他条件下

问题描述 投票:0回答:1

我正在使用mysqldump导出旧记录。但是,转储文件的行数比指定的--where条件略多。我的表有2905338行。导出的行应为635314,但mysqldump正在导出额外的134行。

mysqldump table --no-create-db --no-create-info --skip-add-drop-table --skip-add-locks --skip-disable-keys --skip-set-charset --skip-triggers --where "created BETWEEN '2013-01-01 00:00:00' and '2016-12-01 00:00:00'"

它输出的行数比条件多1小时。其他巨大的表格也是如此。

mysql database export archive
1个回答
0
投票

尝试使用

 mysqldump table --no-create-db --no-create-info --skip-add-drop-table --skip- 
 add-locks --skip-disable-keys --skip-set-charset --skip-triggers --where  
 "created >= '2013-01-01 00:00:00' and created <= '2016-12-01 00:00:00'"
© www.soinside.com 2019 - 2024. All rights reserved.