OPTIONS COMMON TO ND(1)

NAME
ndb-common-options - NDB Cluster Common Program Options

DESCRIPTION

All NDB Cluster programs accept the options described in this section, with the following exceptions:

    • mysqld

    • ndb_print_backup_file

    • ndb_print_schema_file

    • ndb_print_sys_file

    Note

    Users of earlier NDB Cluster versions should note that some of these options have been changed to make them consistent with one another, and also with mysqld. You can use the --help option with any NDB Cluster program—with the exception of ndb_print_backup_file, ndb_print_schema_file, and ndb_print_sys_file—to view a list of the options which the program supports.

The options in the following table are common to all NDB Cluster executables (except those noted previously in this section).

Table 21.110. This table describes command-line options common to all MySQL NDB Cluster programs

For options specific to individual NDB Cluster programs, see Section 21.4, “NDB Cluster Programs”.

See Section 21.3.3.8.1, “MySQL Server Options for NDB Cluster”, for mysqld options relating to NDB Cluster.

    • --character-sets-dir=name
    Command-Line Format | --character-sets-dir=dir_name
    Permitted Values | Type | directory name
     | Default |

    Tells the program where to find character set information.

    • --connect-retries=#
    Command-Line Format | --connect-retries=#
    Permitted Values | Type | numeric
     | Default | 12
     | Min Value | 0
     | Max Value | 4294967295

    This option specifies the number of times following the first attempt to retry a connection before giving up (the client always tries the connection at least once). The length of time to wait per attempt is set using --connect-retry-delay.

        Note
        When used with ndb_mgm, this option has 3 as its default. See ndb_mgm(1), for more information.

    • --connect-retry-delay=#
    Command-Line Format | --connect-retry-delay=#
    Permitted Values | Type | numeric
     | Default | 5
     | Min Value | 0
     | Max Value | 4294967295
    Permitted Values (>= 5.7.10-ndb-7.5.0) | Type | numeric
     | Default | 5
     | Min Value | 1
     | Max Value | 4294967295

    This option specifies the length of time to wait per attempt a connection before giving up. The number of times to try connecting is set by --connect-retries.

    • --core-file
    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 NDB 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 NDB 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.

    • --debug[=options]
    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.

    • --defaults-extra-file=filename
    Command-Line Format | --defaults-extra-file=filename
    Permitted Values | Type | string
     | Default | [none]

    Read this file after global option files are read.

    • --defaults-file=filename
    Command-Line Format | --defaults-file=filename
    Permitted Values | Type | string
     | Default | [none]

    Read default options from this file.

    • --defaults-group-suffix
    Command-Line Format | --defaults-group-suffix
    Permitted Values | Type | string
     | Default | [none]

    Also read groups with names ending in this suffix.

    • --help, --usage, -?
    Command-Line Format | --help
     | --usage

    Prints a short list with descriptions of the available command options.

    • --login-path=path
    Command-Line Format | --login-path=path
    Permitted Values | Type | string
     | Default | [none]

    Read this path from the login file.

    • --ndb-connectstring=connection_string, --connect-string=connection_string, -c connection_string
    Command-Line Format | --ndb-connectstring=connectstring
     | --connect-string=connectstring
    Permitted Values | Type | string
     | Default | localhost:1186

    This option takes an NDB Cluster connection string 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 21.3.3.3, “NDB Cluster Connection Strings”.

    • --ndb-mgmd-host=host[:port]
    Command-Line Format | --ndb-mgmd-host=host[:port]
    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.

    • --ndb-nodeid=#
    Command-Line Format | --ndb-nodeid=#
    Permitted Values | Type | numeric
     | Default | 0

    Sets this node's NDB Cluster node ID. The range of permitted values depends on the node's type (data, management, or API) and the NDB Cluster software version. See Section 21.1.6.2, “Limits and Differences of NDB Cluster from Standard MySQL Limits”, for more information.

    • --no-defaults
    Command-Line Format | --no-defaults
    Permitted Values | Type | boolean
     | Default | TRUE

    Do not read default options from any option file other than login file.

    • --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.

    • --print-defaults
    Command-Line Format | --print-defaults
    Permitted Values | Type | boolean
     | Default | TRUE

    Print the program argument list and exit.

    • --version, -V
    Command-Line Format | --version

    Prints the NDB Cluster version number of the executable. The version number is relevant because not all versions can be used together, and the NDB 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 NDB Cluster.

    See Section 21.5.5, “Performing a Rolling Restart of an NDB Cluster”), for more information.

COPYRIGHT

Copyright © 1997, 2017, Oracle and/or its affiliates. All rights reserved.

This documentation is free software; you can redistribute it and/or modify it only 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 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 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 http://www.gnu.org/licenses/.

SEE ALSO
For more information, please refer to the MySQL Reference Manual, which may already be installed locally and which is also available online at http://dev.mysql.com/doc/.

AUTHOR
Oracle Corporation (http://dev.mysql.com/).