Opcje wyszukiwania podręcznika man:
Lista stron man zaczynających się od znaku:
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z   ALPHA   NUM   OTHER   ALL
NDB_CONFIG(1)                MySQL Database System               NDB_CONFIG(1)

       ndb_config - extract NDB configuration information

       ndb_config options

       This tool extracts configuration information for data nodes, SQL nodes,
       and API nodes from a cluster management node (and possibly its
       config.ini file).


          ndb_config options

       The options available for this utility differ somewhat from those used
       with the other utilities, and so are listed in their entirety in the
       next section, followed by some examples.


       o  --usage, --help, or -?

          Causes ndb_config to print a list of available options, and then

       o  --version, -V

          Causes ndb_config to print a version information string, and then

       o  --ndb-connectstring=connect_string

          Specifies the connectstring to use in connecting to the management
          server. The format for the connectstring is the same as described in
          Section 3.4.2, "The Cluster Connectstring", and defaults to

          The use of -c as a short version for this option is supported for
          ndb_config beginning with MySQL 5.0.29.

       o  --config-file=path-to-file

          Gives the path to the management server's configuration file
          (config.ini). This may be a relative or absolute path. If the
          management node resides on a different host from the one on which
          ndb_config is invoked, then an absolute path must be used.

       o  --query=query-options, -q query-options

          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 would return the
          node ID, node type, DataMemory, and IndexMemory for each node.

          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.

       o  --host=hostname

          Specifies the hostname of the node for which configuration
          information is to be obtained.

       o  --id=node_id, --nodeid=node_id

          Used to specify the node ID of the node for which configuration
          information is to be obtained.

       o  --nodes

          (Tells ndb_config to print information from parameters defined in
          [ndbd] sections only. Currently, using this option has no affect,
          since these are the only values checked, but it may become possible
          in future to query parameters set in [tcp] and other sections of
          cluster configuration files.)

       o  --type=node_type

          Filters results so that only configuration values applying to nodes
          of the specified node_type (ndbd, mysqld, or ndb_mgmd) are returned.

       o  --fields=delimiter, -f delimiter

          Specifies a delimiter string used to separate the fields in the
          result. The default is "," (the comma character).

          If the delimiter contains spaces or escapes (such as \n for the
          linefeed character), then it must be quoted.

       o  --rows=separator, -r separator

          Specifies a separator string used to separate the rows in the
          result. The default is a space character.

          If the separator contains spaces or escapes (such as \n for the
          linefeed character), then it must be quoted.


       1. To obtain the node ID and type of each node in the cluster:

          shell> ./ndb_config --query=id,type --fields=':' --rows='\n'
       In this example, we used the --fields options to separate the ID and
       type of each node with a colon character (:), and the --rows options to
       place the values for each node on a new line in the output.

       2. To produce a connectstring that can be used by data, SQL, and API
          nodes to connect to the management server:

          shell> ./ndb_config --config-file=usr/local/mysql/cluster-data/config.ini --query=hostname,portnumber --fields=: --rows=, --type=ndb_mgmd

       3. This invocation of ndb_config checks only data nodes (using the
          --type option), and shows the values for each node's ID and
          hostname, and its DataMemory, IndexMemory, and DataDir parameters:

          shell> ./ndb_config --type=ndbd --query=id,host,datamemory,indexmemory,datadir -f ' : ' -r '\n'
          1 : : 83886080 : 18874368 : /usr/local/mysql/cluster-data
          2 : : 83886080 : 18874368 : /usr/local/mysql/cluster-data
          3 : : 83886080 : 18874368 : /usr/local/mysql/cluster-data
          4 : : 83886080 : 18874368 : /usr/local/mysql/cluster-data
       In this example, we used the short options -f and -r for setting the
       field delimiter and row separator, respectively.

       4. To exclude results from any host except one in particular, use the
          --host option:

          shell> ./ndb_config --host= -f : -r '\n' -q id,type
       In this example, we also used the short form -q to determine the
       attributes to be queried.

       Similarly, you can limit results to a node with a specific ID using the
       --id or --nodeid option.

       Copyright 2007-2008 MySQL AB

       This documentation is free software; you can redistribute it and/or
       modify it under the terms of the GNU General Public License as
       published by the Free Software Foundation; version 2 of the License.

       This documentation is distributed in the hope that it will be useful,
       but WITHOUT ANY WARRANTY; without even the implied warranty of
       General Public License for more details.

       You should have received a copy of the GNU General Public License along
       with the program; if not, write to the Free Software Foundation, Inc.,
       51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or see

       For more information, please refer to the MySQL Reference Manual, which
       may already be installed locally and which is also available online at

       MySQL AB (

MySQL 5.0                         01/11/2008                     NDB_CONFIG(1)

Time taken: 0.00035 seconds

Created with the man page lookup class by Andrew Collington,