25.5.2 ndbinfo_select_all — 从 ndbinfo 表中选择
ndbinfo_select_all 是一个客户端程序,可以从 ndbinfo 数据库中选择所有行和列的表格
并非所有 ndbinfo 表可供此程序读取(请参阅后续部分)。此外,ndbinfo_select_all 可以显示关于一些表的信息,内部 ndbinfo 不能使用 SQL 访问的包括 tables 和 columns 元数据表。
要从一个或多个 ndbinfo 表中选择使用 ndbinfo_select_all,需要在调用程序时提供表格的名称,如下所示:
$> ndbinfo_select_all table_name1 [table_name2] [...]
例如:
$> ndbinfo_select_all logbuffers logspaces
== logbuffers ==
node_id log_type log_id log_part total used high
5 0 0 0 33554432 262144 0
6 0 0 0 33554432 262144 0
7 0 0 0 33554432 262144 0
8 0 0 0 33554432 262144 0
== logspaces ==
node_id log_type log_id log_part total used high
5 0 0 0 268435456 0 0
5 0 0 1 268435456 0 0
5 0 0 2 268435456 0 0
5 0 0 3 268435456 0 0
6 0 0 0 268435456 0 0
6 0 0 1 268435456 0 0
6 0 0 2 268435456 0 0
6 0 0 3 268435456 0 0
7 0 0 0 268435456 0 0
7 0 0 1 268435456 0 0
7 0 0 2 268435456 0 0
7 0 0 3 268435456 0 0
8 0 0 0 268435456 0 0
8 0 0 1 268435456 0 0
8 0 0 2 268435456 0 0
8 0 0 3 268435456 0 0
$>
以下是可以与ndbinfo_select_all一起使用的选项表格。附加描述在表后面。
-
Command-Line Format --character-sets-dir=path包含字符集的目录。
-
Command-Line Format --core-file在出现错误时写入核心文件;用于调试。
-
Command-Line Format --connect-retries=#Type 整数 Default Value 12Minimum Value 0Maximum Value 12重连次数,直到放弃。
-
Command-Line Format --connect-retry-delay=#Type 整数 Default Value 5Minimum Value 0Maximum Value 5等待与管理服务器联系的秒数之间尝试的次数。
-
Command-Line Format --connect-string=connection-stringType 字符串 Default Value [none] -
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(group, suffix)的组。
-
Command-Line Format --delay=#Type 数值型 Default Value 5Minimum Value 0Maximum Value MAX_INT此选项设置等待执行循环的秒数。无效,如果
--loops设置为0或1。 -
Command-Line Format --help显示帮助文本并退出。
-
Command-Line Format --login-path=pathType 字符串型 Default Value [none]从登录文件中读取给定路径。
-
Command-Line Format --no-login-paths跳过从登录路径文件中读取选项。
-
--loops=,number-lnumberCommand-Line Format --loops=#Type 数值型 Default Value 1Minimum Value 0Maximum Value MAX_INT这个选项设置执行选择的次数。使用
--delay来设置循环之间的时间。 -
Command-Line Format --ndb-connectstring=connection-stringType 字符串 Default Value [none]设置连接字符串,以便与ndb_mgmd连接。语法:
[nodeid=。覆盖id;][host=]hostname[:port]NDB_CONNECTSTRING和my.cnf中的条目。 -
Command-Line Format --ndb-mgmd-host=connection-stringType 字符串 Default Value [none] -
Command-Line Format --ndb-nodeid=#Type 整数 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 --no-defaults不从任何选项文件中读取默认选项,除了登录文件。
-
Command-Line Format --print-defaults打印程序参数列表并退出。
-
Command-Line Format --usage显示帮助文本并退出;与 --help 相同。
-
Command-Line Format --version显示版本信息并退出。
ndbinfo_select_all 无法读取以下表格: