ndb_config
— Extract MySQL Cluster Configuration Information
1629
Read configuration data from the
my.cnf
file.
•
--query=query-options
,
-q
query-options
Command-Line Format
--query=string
-q
Permitted Values
Type
string
Default
This is a comma-delimited list of query options—that is, a list of one or more node attributes to be
returned. These include
id
(node ID), type (node type—that is,
ndbd
,
mysqld
, or
ndb_mgmd
), and
any configuration parameters whose values are to be obtained.
For example,
--query=id,type,indexmemory,datamemory
returns the node ID, node type,
DataMemory
[1559]
, and
IndexMemory
[1560]
for each node.
Note
If a given parameter is not applicable to a certain type of node, than an empty
string is returned for the corresponding value. See the examples later in this
section for more information.
•
--host=hostname
Command-Line Format
--host=name
Permitted Values
Type
string
Default
Specifies the host name of the node for which configuration information is to be obtained.
Note
While the hostname
localhost
usually resolves to the IP address
127.0.0.1
, this may not necessarily be true for all operating platforms and
configurations. This means that it is possible, when
localhost
is used in
config.ini
, for
ndb_config --host=localhost
to fail if
ndb_config
is run on a different host where
localhost
resolves to a different address
(for example, on some versions of SUSE Linux, this is
127.0.0.2
). In
general, for best results, you should use numeric IP addresses for all MySQL
Clustewr configuration values relating to hosts, or verify that all MySQL
Cluster hosts handle
localhost
in the same fashion.
•
--id=node_id
--nodeid=node_id
Either of these options can be used to specify the node ID of the node for which configuration
information is to be obtained.
--nodeid
is the preferred form.
•
--nodes
Command-Line Format
--nodes
Permitted Values
Type
boolean
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...