25.5.15 NDB 数据复制实用程序 — ndb_move_data
ndb_move_data 将 NDB 表中的数据从一个表复制到另一个表。
该程序使用源和目标表的名称调用,源或目标表可以选择性地使用数据库名称限定。两个表都必须使用 NDB 存储引擎。
ndb_move_data options source target
与 ndb_move_data 可以使用的选项在以下表中列出。额外描述在表后。
-
Command-Line Format --abort-on-error在永久错误时 Dump 核心(调试选项)。
-
--character-sets-dir=nameCommand-Line Format --character-sets-dir=pathType 字符串 Default Value [none]字符集目录。
-
Command-Line Format --connect-retry-delay=#Type 整数 Default Value 5Minimum Value 0Maximum Value 5等待管理服务器联系的秒数。
-
Command-Line Format --connect-retries=#Type 整数 Default Value 12Minimum Value 0Maximum Value 12连接失败前重试的次数。
-
Command-Line Format --connect-string=connection_stringType 字符串 Default Value [none] -
Command-Line Format --core-file错误时写入核心文件;用于调试。
-
--database=dbname,-dCommand-Line Format --database=nameType 字符串 Default Value TEST_DB要查找的表所在数据库的名称。
-
Command-Line Format --defaults-extra-file=pathType 字符串 Default Value [none]在读取全局文件后,读取给定的文件。
-
Command-Line Format --defaults-file=pathType 字符串 Default Value [none]从给定的文件中读取默认选项。
-
Command-Line Format --defaults-group-suffix=stringType 字符串 Default Value [none]也读取concat(组,后缀)中的组。
-
Command-Line Format --drop-source在所有行都被移动后,删除源表。
-
Command-Line Format --错误插入在测试选项时,随机插入临时错误。
-
Command-Line Format --exclude-missing-columns忽略源或目标表中的额外列。
-
Command-Line Format --help显示帮助文本并退出。
-
Command-Line Format --login-path=pathType 字符串 Default Value [none]从登录文件中读取给定的路径。
-
Command-Line Format --no-login-paths跳过从登录路径文件中读取选项。
-
Command-Line Format --lossy-conversions允许属性数据在转换到较小类型时被截断。
-
Command-Line Format --徽-connectstring=测叁日Type String Default Value [none]设置连接字符串,以连接到ndb_mgmd。语法:
[nodeid=测叁日;][host=]测叁日[:测叁日]。覆盖了NDB_CONNECTSTRING和my.cnf中的条目。 -
Command-Line Format --徽-mgm-tls=测叁日Type Enumeration Default Value relaxedValid Values relaxedstrict设置管理服务器连接所需的TLS支持级别;可以是
relaxed或strict。relaxed(默认)意味着尝试建立TLS连接,但成功不要求;strict意味着需要TLS连接。 -
Command-Line Format --ndb-mgmd-host=连接字符串Type String Default Value [none] -
Command-Line Format --ndb-nodeid=#Type Integer Default Value [none]为当前节点设置节点 ID,覆盖
--ndb-connectstring中设置的任何 ID。 -
--ndb-optimized-node-selectionCommand-Line Format --ndb-optimized-node-selection启用事务选择节点的优化。默认启用,可以使用
--skip-ndb-optimized-node-selection来禁用。 -
Command-Line Format --ndb-tls-search-path=列表Type Path name Default Value (Unix) $HOME/ndb-tlsDefault Value (Windows) $HOMEDIR/ndb-tls指定要搜索CA文件的目录列表。Unix平台上,目录名称使用冒点(
:)分隔;Windows系统中,分隔符为分号(;)。目录引用可以是相对或绝对路径,可以包含一个或多个环境变量,每个变量以前缀的美元符号($)表示,并在使用时展开。搜索从左到右开始,以最左边命名的目录为起点,直到找到文件为止。如果搜索路径为空,则所有搜索都将失败。一个包含单个点(
.)的字符串表示搜索路径限制于当前工作目录。如果未提供搜索路径,则使用编译时默认值。这取决于平台:在Windows上,这是
\ndb-tls;在其他平台(包括Linux)中,这是$HOME/ndb-tls。可以通过编译NDB集群使用-DWITH_NDB_TLS_SEARCH_PATH来覆盖该值。 -
Command-Line Format --no-defaults不从任何选项文件中读取默认选项,除了登录文件。
-
Command-Line Format --print-defaults打印程序参数列表并退出。
-
Command-Line Format --promote-attributes允许将属性数据转换为更大的类型。
-
--staging-tries=x[,y[,z]]Command-Line Format --staging-tries=x[,y[,z]]Type 字符串 Default Value 0,1000,60000指定临时错误的尝试次数。格式为x[,y[,z]],其中x=最大尝试次数(0表示无限制),y=最小延迟(毫秒),z=最大延迟(毫秒)。
-
Command-Line Format --usage显示帮助文本并退出;与
--help相同。 -
Command-Line Format --verbose启用详细消息。
-
Command-Line Format --version显示版本信息并退出。