All MySQL Cluster programs (except for mysqld)
take the options described in this section. Users of earlier MySQL
Cluster versions should note that some of these options have been
changed to make them consistent with one another as well as with
mysqld. You can use the --help
option with any MySQL Cluster program to view a list of the
options which it supports.
Table 16.17. Common MySQL Cluster Command line Options
| Format | Description | Introduction | Deprecated | Removed |
|---|---|---|---|---|
| --character-sets-dir=path | Directory where character sets are | |||
| --core-file | Write core on errors (defaults to TRUE in debug builds) | |||
| --debug=options | Enable output from debug calls. Can be used only for versions compiled with debugging enabled | |||
| --help | Display help message and exit | |||
| --ndb-connectstring=connectstring | Set connectstring for connecting to ndb_mgmd. Syntax: [nodeid=<id>;][host=]<hostname>[:<port>]. Overrides entries specified in NDB_CONNECTSTRING or my.cnf. | |||
| --ndb-mgmd-host=host[:port] | Set the host (and port, if desired) for connecting to the management server | |||
| --ndb-nodeid=# | Set node id for this node | |||
| --ndb-optimized-node-selection | Select nodes for transactions in a more optimal way | |||
| --ndb-shm | Allow for optimization using shared memory connections where available (was EXPERIMENTAL, later REMOVED) | |||
| --version | Output version information and exit |
For options specific to individual MySQL Cluster programs, see Section 16.4, “MySQL Cluster Programs”.
See Section 16.3.4.2, “mysqld Command Options for MySQL Cluster”, for mysqld options relating to MySQL Cluster.
| Command-Line Format | --help |
||
--usage |
|||
-? |
|||
Prints a short list with descriptions of the available command options.
--ndb-connectstring=,
connect_string--connect-string=,
connect_string-c
connect_string
| Command-Line Format | --ndb-connectstring=connectstring |
||
--connect-string=connectstring |
|||
-c |
|||
| Permitted Values | |||
| Type | string |
||
| Default | localhost:1186 |
||
This option takes a MySQL Cluster connectstring that specifies the management server for the application to connect to, as shown here:
shell> ndbd --ndb-connectstring="nodeid=2;host=ndb_mgmd.mysql.com:1186"
For more information, see Section 16.3.2.2, “The MySQL Cluster Connectstring”.
| Command-Line Format | --ndb-mgmd-host=host[:port] |
||
| Option-File Format | ndb-mgmd-host |
||
| Permitted Values | |||
| Type | string |
||
| Default | localhost:1186 |
||
Can be used to set the host and port number of a single
management server for the program to connect to. If the
program requires node IDs or references to multiple management
servers (or both) in its connection information, use the
--ndb-connectstring option
instead.
| Command-Line Format | --character-sets-dir=path |
||
| Permitted Values | |||
| Type | file name |
||
| Default | |
||
Tells the program where to find character set information.
--connect-string=,
connect_string-c
connect_string
connect_string sets the
connectstring to the management server as a command option.
shell> ndbd --connect-string="nodeid=2;host=ndb_mgmd.mysql.com:1186"
For more information, see Section 16.3.2.2, “The MySQL Cluster Connectstring”.
| Command-Line Format | --core-file |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | FALSE |
||
Write a core file if the program dies. The name and location
of the core file are system-dependent. (For MySQL Cluster
programs nodes running on Linux, the default location is the
program's working directory—for a data node, this
is the node's DataDir.) For some
systems, there may be restrictions or limitations; for
example, it might be necessary to execute ulimit -c
unlimited before starting the server. Consult your
system documentation for detailed information.
If MySQL Cluster was built using the --debug
option for configure, then
--core-file is enabled by default. For
regular builds, --core-file is disabled by
default.
| Command-Line Format | --debug=options |
||
| Permitted Values | |||
| Type | string |
||
| Default | d:t:O,/tmp/ndb_restore.trace |
||
This option can be used only for versions compiled with debugging enabled. It is used to enable output from debug calls in the same manner as for the mysqld process.
| Command-Line Format | --ndb-nodeid=# |
||
| Permitted Values | |||
| Type | numeric |
||
| Default | 0 |
||
Sets this node's MySQL Cluster node ID. The range of permitted values depends on the type of the node (data, management, or API) and the version of the MySQL Cluster software which is running on it. See Section 16.1.5.2, “Limits and Differences of MySQL Cluster from Standard MySQL Limits”, for more information.
--ndb-optimized-node-selection
| Command-Line Format | --ndb-optimized-node-selection |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | TRUE |
||
Optimize selection of nodes for transactions. Enabled by default.
| Command-Line Format | --version |
||
-V |
|||
Prints the MySQL Cluster version number of the executable. The version number is relevant because not all versions can be used together, and the MySQL Cluster startup process verifies that the versions of the binaries being used can co-exist in the same cluster. This is also important when performing an online (rolling) software upgrade or downgrade of MySQL Cluster. (See Section 16.5.4, “Performing a Rolling Restart of a MySQL Cluster”).
| Command-Line Format | --ndb-shm |
||
| Permitted Values | |||
| Type | boolean |
||
| Default | FALSE |
||
In MySQL 5.0, this experimental option allows an application
to use shared memory for optimization when this is available.
It is not intended for production use.
--ndb-shm is deprecated in MySQL 5.1, and is
removed from all MySQL Cluster programs in MySQL Cluster NDB
7.0 and later.

User Comments
Add your own comment.