Bug #37751 mysqladmin ignores count option

Submitted: 30 Jun 2008 21:19 Modified: 9 Jun 2009 10:59
Reporter: Gordon Shannon Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Server: Packaging Severity:S3 (Non-critical)
Version:5.1.24-rc-community-log, 5.1.25 OS:Linux
Assigned to: CPU Architecture:Any
Tags: mysqladmin extended count sleep

[30 Jun 2008 21:19] Gordon Shannon
Description:
When using mysqladmin with the -i, -r, & -c options, and extended-status, the -c seems to be ignored, and it runs indefinitely, as if you had left off the -c.

I tested it on a 5.1.25 system as well, and it has a different problem: it gives the extended status exactly once no matter what -c is, as if you had given -c1.

How to repeat:
mysqladmin -u<user> -p<xxx> -c3 -i3 -r extended-status

-- or --

mysqladmin -u<user> -p<xxx> --count=3 --sleep=3 --relative extended-status

Suggested fix:
Honor the --count/-c option
[1 Jul 2008 20:00] Sveta Smirnova
Thank you for the report.

I can not repeat described behavior. Please indicate which package do you use (file name).
[1 Jul 2008 22:38] Gordon Shannon
We have 3 server installation types, and 2 behaviors.

1. Fedora servers, running package MySQL-client-5.1.24-0.glibc23

The -c option is ignored on these servers (it repeats forever)

2. Centos servers, running package MySQL-client-community-5.1.24-0.rhel5 

The -c option is forced to be "1" (it runs only once)

3. A Centos server, running package MySQL-client-community-5.1.25-0.rhel5

Same as the 5.1.24 Centos server.
[3 Jul 2008 18:53] Sveta Smirnova
Thank you for the feedback.

Problem with Fedora packages verified as described with MySQL-client-5.1.25-0.glibc23.i386.rpm package. With Red Hat problem is not repeatable for me.
[9 Jun 2009 10:59] Daniel Fischer
I can't repeat this on Fedora 4.

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.