Bug #65241 perror --ndb errorcode doesn't work
Submitted: 8 May 2012 15:53 Modified: 14 Jun 2012 14:47
Reporter: Olivier ZEMRAG Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Cluster: Cluster (NDB) storage engine Severity:S3 (Non-critical)
Version:5.5.16 OS:Windows (Win32 )
Assigned to: CPU Architecture:Any
Tags: perror

[8 May 2012 15:53] Olivier ZEMRAG
Description:
in the doc 
http://dev.mysql.com/doc/refman/5.5/en/perror.html

--ndb

Print the error message for a MySQL Cluster error code. 

doesn't work 

How to repeat:
perror --ndb 4335
perror: unknown option '--ndb'

perror --help
perror Ver 2.11, for Win32 (x86)
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license

Print a description for a system error code or a MySQL error code.
If you want to get the error for a negative error code, you should use
-- before the first error code to tell perror that there was no more options.

Usage: perror [OPTIONS] [ERRORCODE [ERRORCODE...]]
  -?, --help          Displays this help and exits.
  -I, --info          Synonym for --help.
  -s, --silent        Only print the error message.
  -v, --verbose       Print error code and message (default).
                      (Defaults to on; use --skip-verbose to disable.)
  -V, --version       Displays version information and exits.

Variables (--variable-name=value)
and boolean options {FALSE|TRUE}  Value (after reading options)
--------------------------------- ----------------------------------------
verbose                           TRUE

Suggested fix:
Update documentation or add option
[8 May 2012 17:09] MySQL Verification Team
looks like bug #31238
[8 May 2012 19:25] Sveta Smirnova
Thank you for the report.

I believe Shane is correct and this is duplicate of bug #31238

Just to be sure: which exact MySQL package do you use (file name you downloaded)?
[13 May 2012 18:05] Olivier ZEMRAG
Hi 

This is a standard GPL Binary Packages build for NDB Cluster : ndb-7.2.5-gpl MySQL Cluster Community downloadeded from dev.mysql.com :  

mysql> status;
-------------
mysql  Ver 14.14 Distrib 5.5.16, for Win32 (x86)

onnection id:          704
urrent database:       db1
urrent user:           root@localhost
SL:                    Not in use
sing delimiter:        ;
erver version:         5.5.20-ndb-7.2.5-gpl MySQL Cluster Community Server (GPL

rotocol version:       10
onnection:             127.0.0.1 via TCP/IP
erver characterset:    latin1
b     characterset:    latin1
lient characterset:    latin1
[13 May 2012 18:10] MySQL Verification Team
you're running the mysql.exe client for 5.5.16 instead of 5.5.20-ndb-7.2.5-gpl.
Are you sure you have the correct perror.exe version ?
[15 Jun 2012 1:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".