21.4.2 ndbinfo_select_all —从 ndbinfotable 中选择
ndbinfo_select_all是一个 Client 端程序,可从ndbinfo数据库中的一个或多个 table 中选择所有行和列
此程序无法读取mysqlClient 端中可用的所有ndbinfo
table。此外,ndbinfo_select_all可以显示有关ndbinfo
内部某些 table 的信息,这些 table 不能使用 SQL 进行访问,包括tables
和columns
元数据 table。
要使用ndbinfo_select_all从一个或多个ndbinfo
table 中进行选择,请在调用程序时提供 table 名,如下所示:
shell> ndbinfo_select_all table_name1 [table_name2] [...]
For example:
shell> 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
shell>
下 table 包含特定于ndbinfo_select_all的选项。附加说明如下 table 所示。有关大多数 NDB 群集程序(包括ndbinfo_select_all)共有的选项,请参见第 21.4.32 节“ NDB 群集程序的公用选项-NDB 群集程序的公用选项”。
table21.240 ndbinfo_select_all 程序的命令行选项
Format | Description | 添加,不建议使用或删除 |
---|---|---|
--delay=# | 设置循环之间的延迟(以秒为单位) | (在所有基于 MySQL 5.7 的版本中受支持) |
--loops=# , | ||
-l | 设置执行选择的次数 | (所有基于 MySQL 5.7 的版本均支持) |
--database=db_name ,-d | table 所在的数据库名称 | (在所有基于 MySQL 5.7 的版本中受支持) |
--parallelism=# ,-p | 设置并行度 | (在所有基于 MySQL 5.7 的版本中受支持) |
Property | Value |
---|---|
Command-Line Format | --delay=# |
Type | Numeric |
Default Value | 5 |
Minimum Value | 0 |
Maximum Value | MAX_INT |
此选项设置两次执行循环之间要 await 的秒数。如果--loops设置为 0 或 1,则无效。
Property | Value |
---|---|
Command-Line Format | --loops=# |
Type | Numeric |
Default Value | 1 |
Minimum Value | 0 |
Maximum Value | MAX_INT |
此选项设置执行选择的次数。使用--delay设置循环之间的时间。