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 程序的命令行选项

Format Description 添加,不建议使用或删除
--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 的版本均支持)

Property Value
Command-Line Format --abort-on-error
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --character-sets-dir=name
Type String
Default Value [none]

字符集所在的目录。

Property Value
Command-Line Format --database=dbname
Type String
Default Value TEST_DB

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

Property Value
Command-Line Format --drop-source
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --error-insert
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --exclude-missing-columns
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --lossy-conversions
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --promote-attributes
Type Boolean
Default Value FALSE

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

Property Value
Command-Line Format --staging-tries=x[,y[,z]]
Type String
Default Value 0,1000,60000

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

Property Value
Command-Line Format --verbose
Type Boolean
Default Value FALSE

启用详细消息。

首页