MySQL 26.10 Reference Manual Including MySQL NDB Cluster 26.10
ndb_perror shows information about an NDB error, given its error code. This includes the error message, the type of error, and whether the error is permanent or temporary.
ndb_perror [options]error_code
ndb_perror does not need to access a running NDB Cluster, or any nodes (including SQL nodes). To view information about a given NDB error, invoke the program, using the error code as an argument, like this:
$> ndb_perror 323
NDB error code 323: Invalid nodegroup id, nodegroup already existing: Permanent error: Application error
To display only the error message, invoke
ndb_perror with the
--silent option (short form
-s), as shown here:
$> ndb_perror -s 323
Invalid nodegroup id, nodegroup already existing: Permanent error: Application error
Like perror, ndb_perror accepts multiple error codes:
$> ndb_perror 321 1001
NDB error code 321: Invalid nodegroup id: Permanent error: Application error
NDB error code 1001: Illegal connect string
Additional program options for ndb_perror are described later in this section.
ndb_perror replaces perror
--ndb, which is no longer supported by NDB
Cluster. To make substitution easier in scripts and other
applications that might depend on perror for
obtaining NDB error information, ndb_perror
supports its own “dummy”
--ndb option, which does
nothing.
The following table includes all options that are specific to the NDB Cluster program ndb_perror. Additional descriptions follow the table.
| Command-Line Format | --defaults-extra-file=path |
|---|---|
| Type | String |
| Default Value | [none] |
Read given file after global files are read.
| Command-Line Format | --defaults-file=path |
|---|---|
| Type | String |
| Default Value | [none] |
Read default options from given file only.
| Command-Line Format | --defaults-group-suffix=string |
|---|---|
| Type | String |
| Default Value | [none] |
Also read groups with concat(group, suffix).
--help,
-?
| Command-Line Format | --help |
|---|
Display program help text and exit.
| Command-Line Format | --login-path=path |
|---|---|
| Type | String |
| Default Value | [none] |
Read given path from login file.
| Command-Line Format | --no-login-paths |
|---|
Skips reading options from the login path file.
| Command-Line Format | --ndb |
|---|
For compatibility with applications depending on old
versions of perror that use that
program's --ndb option. The option
when used with ndb_perror does nothing,
and is ignored by it.
| Command-Line Format | --no-defaults |
|---|
Do not read default options from any option file other than login file.
| Command-Line Format | --print-defaults |
|---|
Print program argument list and exit.
--silent,
-s
| Command-Line Format | --silent |
|---|
Show error message only.
--version,
-V
| Command-Line Format | --version |
|---|
Print program version information and exit.
--verbose,
-v
| Command-Line Format | --verbose |
|---|
Verbose output; disable with
--silent.