The following table provides a list of the command-line options,
server and status variables applicable within
mysqld when it is running as an SQL node in
an NDB Cluster. For a table showing all
command-line options, server and status variables available for
use with mysqld, see
Section 5.1.3, “Server Option and Variable Reference”.
Table 18.9 MySQL Server Options and Variables for MySQL Cluster: MySQL Cluster NDB 7.2
| Option or Variable Name | ||
|---|---|---|
| Command Line | System Variable | Status Variable |
| Option File | Scope | Dynamic |
| Notes | ||
| No | No | Yes |
| No | Both | No |
DESCRIPTION: Count of SHOW NDB STATUS statements |
||
| No | No | Yes |
| No | Both | No |
DESCRIPTION: Number of times that tables have been discovered |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: Whether mysqld supports NDB Cluster tables (set by --ndbcluster option) |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Size (in bytes) to use for NDB transaction batches |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Specifies size in bytes that large BLOB reads should be batched into. 0 = no limit. |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Specifies size in bytes that large BLOB writes should be batched into. 0 = no limit. |
||
| Yes | Yes | Yes |
| Yes | Global | No |
DESCRIPTION: Number of connections to the cluster used by MySQL |
||
| Yes | No | No |
| Yes | No | |
DESCRIPTION: Point to the management server that distributes the cluster configuration |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Specifies that constraint checks on unique indexes (where these are supported) should be deferred until commit time. Not normally needed or used; for testing purposes only. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Default distribution for new tables in NDBCLUSTER (KEYHASH or LINHASH, default is KEYHASH) |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Cause a MySQL server acting as a slave to log mysql.ndb_apply_status updates received from its immediate master in its own binary log, using its own server ID. Effective only if the server is started with the --ndbcluster option. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: When enabled, causes epochs in which there were no changes to be written to the ndb_apply_status and ndb_binlog_index tables, even when --log-slave-updates is enabled. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: When enabled, causes updates that produced no changes to be written to the ndb_apply_status and ndb_binlog_index tables, even when --log-slave-updates is enabled. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Log originating server id and epoch in mysql.ndb_binlog_index table. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Write NDB transaction IDs in the binary log. Requires --log-bin-v1-events=OFF. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Toggles logging of updates on the master between updates (OFF) and writes (ON) |
||
| Yes | No | No |
| Yes | No | |
DESCRIPTION: Set the host (and port, if desired) for connecting to management server |
||
| Yes | No | Yes |
| Yes | Global | No |
DESCRIPTION: MySQL Cluster node ID for this MySQL server |
||
| Yes | No | No |
| No | No | |
DESCRIPTION: Enable or disable the ndb_transid_mysql_connection_map plugin; that is, enable or disable the INFORMATION_SCHEMA table having that name. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Time (in seconds) for the MySQL server to wait for connection to cluster management and data nodes before accepting MySQL client connections. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Time (in seconds) for the MySQL server to wait for NDB engine setup to complete. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Amount of data (in bytes) received from the data nodes by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Amount of data (in bytes) received from the data nodes in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Amount of data (in bytes) received from the data nodes by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Amount of data (in bytes) sent to the data nodes by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Amount of data (in bytes) sent to the data nodes in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Amount of data (in bytes) sent to the data nodes by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of bytes of events received by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of bytes of events received by the NDB binary log injector thread. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of row change events received by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of row change events received by the NDB binary log injector thread. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of events received, other than row change events, by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of events received, other than row change events, by the NDB binary log injector thread. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of operations based on or using primary keys by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of operations based on or using primary keys in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of operations based on or using primary keys by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of scans that have been pruned to a single partition by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of scans that have been pruned to a single partition in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of scans that have been pruned to a single partition by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of range scans that have been started by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of range scans that have been started in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of range scans that have been started by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total number of rows that have been read by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Total number of rows that have been read in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total number of rows that have been read by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of batches of rows received by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of batches of rows received in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of batches of rows received by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of table scans that have been started, including scans of internal tables, by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of table scans that have been started, including scans of internal tables, in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of table scans that have been started, including scans of internal tables, by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions aborted by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of transactions aborted in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions aborted by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions aborted (may be greater than the sum of TransCommitCount and TransAbortCount) by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of transactions aborted (may be greater than the sum of TransCommitCount and TransAbortCount) in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions aborted (may be greater than the sum of TransCommitCount and TransAbortCount) by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions committed by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of transactions committed in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions committed by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total number of rows that have been read by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Total number of rows that have been read in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total number of rows that have been read by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions started by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of transactions started in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions started by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of operations based on or using unique keys by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of operations based on or using unique keys in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of operations based on or using unique keys by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked while waiting for execution of an operation to complete by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of times thread has been blocked while waiting for execution of an operation to complete in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked while waiting for execution of an operation to complete by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked waiting for a metadata-based signal by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of times thread has been blocked waiting for a metadata-based signal in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked waiting for a metadata-based signal by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total time (in nanoseconds) spent waiting for some type of signal from the data nodes by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Total time (in nanoseconds) spent waiting for some type of signal from the data nodes in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total time (in nanoseconds) spent waiting for some type of signal from the data nodes by this slave. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked while waiting for a scan-based signal by this MySQL Server (SQL node). |
||
| No | No | Yes |
| No | Session | No |
DESCRIPTION: Number of times thread has been blocked while waiting for a scan-based signal in this client session. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of times thread has been blocked while waiting for a scan-based signal by this slave. |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: NDB auto-increment prefetch size |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Number of milliseconds between checks of cluster SQL nodes made by the MySQL query cache |
||
| No | No | Yes |
| No | Both | No |
DESCRIPTION: If the server is acting as a MySQL Cluster node, then the value of this variable its node ID in the cluster |
||
| No | No | Yes |
| No | Both | No |
DESCRIPTION: The host name or IP address of the Cluster management server. Formerly Ndb_connected_host |
||
| No | No | Yes |
| No | Both | No |
DESCRIPTION: The port for connecting to Cluster management server. Formerly Ndb_connected_port |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of rows that have been found in conflict by the NDB$EPOCH() conflict detection function |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of rows that have been found in conflict by the NDB$EPOCH_TRANS() conflict detection function |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: If the server is part of a MySQL Cluster involved in cluster replication, the value of this variable indicates the number of times that conflict resolution based on "greater timestamp wins" has been applied |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: If the server is part of a MySQL Cluster involved in cluster replication, the value of this variable indicates the number of times that "same timestamp wins" conflict resolution has been applied |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of epoch transactions committed after requiring transactional conflict handling. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of internal iterations required to commit an epoch transaction. Should be (slightly) greater than or equal to Ndb_conflict_trans_conflict_commit_count. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of transactions rejected after being found in conflict by a transactional conflict function. |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Total number of rows realigned after being found in conflict by a transactional conflict function. Includes Ndb_conflict_trans_row_conflict_count and any rows included in or dependent on conflicting transactions. |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Specifies that constraint checks should be deferred (where these are supported). Not normally needed or used; for testing purposes only. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Default distribution for new tables in NDBCLUSTER (KEYHASH or LINHASH, default is KEYHASH) |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Maximum memory that can be allocated for buffering events by the NDB API. Defaults to 0 (no limit). |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Provides the number of round trips to the NDB kernel made by operations |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Controls logging of MySQL Cluster schema, connection, and data distribution events in the MySQL error log |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Forces sending of buffers to NDB immediately, without waiting for other threads |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Sets the granularity of the statistics by determining the number of starting and ending keys |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Use NDB index statistics in query optimization |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Comma-separated list of tunable options for NDB index statistics; the list should contain no spaces |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: How often to query data nodes instead of the statistics cache |
||
| No | Yes | No |
| No | Both | Yes |
DESCRIPTION: Enables pushing down of joins to data nodes |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Whether or not a MySQL server acting as a slave logs mysql.ndb_apply_status updates received from its immediate master in its own binary log, using its own server ID. |
||
| Yes | Yes | No |
| No | Both | Yes |
DESCRIPTION: Write updates to NDB tables in the binary log. Effective only if binary logging is enabled with --log-bin. |
||
| Yes | Yes | No |
| No | Global | Yes |
DESCRIPTION: Insert mapping between epochs and binary log positions into the ndb_binlog_index table. Defaults to ON. Effective only if binary logging is enabled on the server. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: When enabled, epochs in which there were no changes are written to the ndb_apply_status and ndb_binlog_index tables, even when log_slave_updates is enabled. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: When enabled, updates which produce no changes are written to the ndb_apply_status and ndb_binlog_index tables, even when log_slave_updates is enabled. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Whether the id and epoch of the originating server are recorded in the mysql.ndb_binlog_index table. Set using the --ndb-log-orig option when starting mysqld. |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: Whether NDB transaction IDs are written into the binary log. (Read-only.) |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Log complete rows (ON) or updates only (OFF) |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: If the server is part of a MySQL Cluster, the value of this variable is the number of data nodes in the cluster |
||
| No | Yes | No |
| No | Global | Yes |
DESCRIPTION: Sets the number of milliseconds to wait between processing sets of rows by OPTIMIZE TABLE on NDB tables. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Determines how an SQL node chooses a cluster data node to use as transaction coordinator |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of scans executed by NDB since the cluster was last started where partition pruning could be used |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of joins that API nodes have attempted to push down to the data nodes |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of joins that API nodes have tried to push down, but failed |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of joins successfully pushed down and executed on the data nodes |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: Number of reads executed on the data nodes by pushed-down joins |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: NDB 7.5.4 and later: Threshold for number of epochs completely buffered, but not yet consumed by binlog injector thread which when exceeded generates BUFFERED_EPOCHS_OVER_THRESHOLD event buffer status message; prior to NDB 7.5.4: Threshold for number of epochs to lag behind before reporting binary log status |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: This is a threshold on the percentage of free memory remaining before reporting binary log status |
||
| No | No | Yes |
| No | Global | No |
DESCRIPTION: The total number of scans executed by NDB since the cluster was last started |
||
| No | Yes | No |
| No | Session | Yes |
DESCRIPTION: NDB tables created when this setting is enabled are not checkpointed to disk (although table schema files are created). The setting in effect when the table is created with or altered to use NDBCLUSTER persists for the lifetime of the table. |
||
| No | Yes | No |
| No | Session | Yes |
DESCRIPTION: NDB tables are not persistent on disk: no schema files are created and the tables are not logged |
||
| No | Yes | No |
| No | Both | Yes |
DESCRIPTION: Use exact row count when planning queries |
||
| Yes | Yes | No |
| Yes | Both | Yes |
DESCRIPTION: Forces NDB to use a count of records during SELECT COUNT(*) query planning to speed up this type of query |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: Shows build and NDB engine version as an integer. |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: Shows build information including NDB engine version in ndb-x.y.z format. |
||
| Yes | No | No |
| Yes | No | |
DESCRIPTION: Enable NDB Cluster (if this version of MySQL supports it)
Disabled by |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: The name used for the NDB information database; read only. |
||
| Yes | Yes | No |
| No | Both | Yes |
DESCRIPTION: Used for debugging only. |
||
| Yes | Yes | No |
| No | Both | Yes |
DESCRIPTION: Used for debugging only. |
||
| No | Yes | No |
| No | Global | Yes |
DESCRIPTION: Put the ndbinfo database into offline mode, in which no rows are returned from tables or views. |
||
| Yes | Yes | No |
| No | Both | Yes |
DESCRIPTION: Whether to show ndbinfo internal base tables in the mysql client. The default is OFF. |
||
| Yes | Yes | No |
| No | Both | Yes |
DESCRIPTION: The prefix to use for naming ndbinfo internal base tables |
||
| No | Yes | No |
| No | Global | No |
DESCRIPTION: The version of the ndbinfo engine; read only. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: Sets the number of least significant bits in the server_id actually used for identifying the server, permitting NDB API applications to store application data in the most significant bits. server_id must be less than 2 to the power of this value. |
||
| Yes | Yes | No |
| Yes | Global | No |
DESCRIPTION: The effective value of server_id if the server was started with the --server-id-bits option set to a nondefault value. |
||
| Yes | Yes | No |
| Yes | Global | Yes |
DESCRIPTION: Turns update batching on and off for a replication slave |
||
| No | Yes | No |
| No | Session | Yes |
DESCRIPTION: Allows batching of statements within a transaction. Disable AUTOCOMMIT to use. |
||