21.4.16 ndb_move_data — NDB 数据复制 Util

ndb_move_data将数据从一个 NDBtable 复制到另一个。

Usage

用源 table 和目标 table 的名称调用该程序;可以选择使用数据库名称来限定这两者之一或全部。两个 table 都必须使用 NDB 存储引擎。

ndb_move_data options source target

下 table 包含特定于ndb_move_data的选项。附加说明如下 table 所示。有关大多数 NDB 群集程序(包括ndb_move_data)共有的选项,请参见第 21.4.32 节“ NDB 群集程序的公用选项-NDB 群集程序的公用选项”

table21.252 ndb_move_data 程序的命令行选项

FormatDescription添加,不建议使用或删除
--abort-on-error永久错误时转储核心(调试选项)(在所有基于 MySQL 5.7 的版本中受支持)
--character-sets-dir=name字符集所在的目录(在所有基于 MySQL 5.7 的版本中受支持)
--database=dbname ,

-d
在其中找到 table 的数据库名称(在所有基于 MySQL 5.7 的版本中受支持)
--drop-source移动完所有行后,拖放源 table(在所有基于 MySQL 5.7 的发行版中均受支持)
--error-insert插入随机临时错误(测试选项)(所有基于 MySQL 5.7 的版本均支持)
--exclude-missing-columns忽略源 table 或目标 table 中的多余列(所有基于 MySQL 5.7 的版本均支持)
--lossy-conversions ,
-l
允许将属性数据转换为较小的类型时将其截断(所有基于 MySQL 5.7 的版本均支持)
--promote-attributes ,
-A
允许将属性数据转换为更大的类型(所有基于 MySQL 5.7 的版本均支持)
--staging-tries=x[,y[,z]]指定尝试临时错误;格式为 x [,y [,z]],其中 x =最大尝试(0 =无限制),y =最小延迟(ms),z =最大延迟(ms)(在所有基于 MySQL 5.7 的版本中支持)
--verbose启用详细消息(所有基于 MySQL 5.7 的版本均支持)
  • --abort-on-error

PropertyValue
Command-Line Format--abort-on-error
TypeBoolean
Default ValueFALSE

永久错误时转储核心(调试选项)。

  • --character-sets-dir = name

PropertyValue
Command-Line Format--character-sets-dir=name
TypeString
Default Value[none]

字符集所在的目录。

  • --database = dbname , -d

PropertyValue
Command-Line Format--database=dbname
TypeString
Default ValueTEST_DB

在其中找到 table 的数据库的名称。

  • --drop-source

PropertyValue
Command-Line Format--drop-source
TypeBoolean
Default ValueFALSE

移动所有行后,删除源 table。

  • --error-insert

PropertyValue
Command-Line Format--error-insert
TypeBoolean
Default ValueFALSE

插入随机的临时错误(测试选项)。

  • --exclude-missing-columns

PropertyValue
Command-Line Format--exclude-missing-columns
TypeBoolean
Default ValueFALSE

忽略源 table 或目标 table 中的多余列。

  • --lossy-conversions , -l

PropertyValue
Command-Line Format--lossy-conversions
TypeBoolean
Default ValueFALSE

转换为较小类型时,允许属性数据被截断。

  • --promote-attributes , -A

PropertyValue
Command-Line Format--promote-attributes
TypeBoolean
Default ValueFALSE

允许将属性数据转换为更大的类型。

  • --staging-tries = x[,y[,z]]

PropertyValue
Command-Line Format--staging-tries=x[,y[,z]]
TypeString
Default Value0,1000,60000

指定尝试临时错误。格式为 x [,y [,z]],其中 x =最大尝试次数(0 =无限制),y =最小延迟时间(毫秒),z =最大延迟时间(毫秒)。

  • --verbose

PropertyValue
Command-Line Format--verbose
TypeBoolean
Default ValueFALSE

启用详细消息。