Bug #26964 option --no-beep for mysqladmin

Submitted: 8 Mar 2007 17:08 Modified: 27 Mar 2007 19:13
Reporter: Guilhem Bichot Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:5.0, 5.1 OS:Linux (linux)
Assigned to: Guilhem Bichot CPU Architecture:Any

[8 Mar 2007 17:08] Guilhem Bichot
Description:
upon error (like when it fails to connect to mysqld), mysqladmin issues a system-speaker beep (ASCII 7, BEL) which can be loud on some systems (like mine). Because this is the system-speaker, not the soundcard, it's not possible to silence or decrease its volume.
We should add an option --no-beep to mysqladmin like the "mysql" command-line client already has (default would be "beep" like in "mysql").

How to repeat:
try to connect mysqladmin to a mysqld which does not exist. On some machines it will give a loud beep.

Suggested fix:
will write a patch.
[8 Mar 2007 21:01] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/21540

ChangeSet@1.2470, 2007-03-08 21:49:36+01:00, guilhem@gbichot4.local +1 -0
  Implementing the feature at BUG#26964 "option --no-beep for mysqladmin".
  Option --no-beep is added to mysqladmin like it already exists in
  the "mysql" command-line client (short option: -b; long: --no-beep).
  Default is to emit beeps like that "mysql" client.
  Can't test in the testsuite; but on my Linux I tested by hand:
  open a *xterm* and there do "mysqladmin shutdown" - I hear a beep;
  with --no-beep, no beep.
[9 Mar 2007 9:17] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/21560

ChangeSet@1.2470, 2007-03-09 10:15:33+01:00, guilhem@gbichot4.local +1 -0
  Implementing the feature at BUG#26964 "option --no-beep for mysqladmin".
  Option --no-beep is added to mysqladmin like it already exists in
  the "mysql" command-line client (short option: -b; long: --no-beep).
  Default is to emit beeps like that "mysql" client.
  Can't test in the testsuite; but on my Linux I tested by hand:
  open a *xterm* and there do "mysqladmin shutdown" - I hear a beep;
  with --no-beep, no beep.
[9 Mar 2007 15:20] Guilhem Bichot
pushed in 5.1-maint.
Documentation: new option --no-beep added to mysqladmin, which will tell mysqladmin to not emit beeps (ASCII BEL) when there is an error (like a connection error). Default is still to emit beeps. The "mysql" command-line client already has such option.
[22 Mar 2007 20:11] Mads Martin Joergensen
Fixed in 5.1.17
[27 Mar 2007 19:13] Paul DuBois
Noted in 5.1.17 changelog and in mysqladmin section.

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

Page generated in 0.042 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.