Bug #1823 mysqladmin does not know all config options from section "client"
Submitted: 12 Nov 2003 17:43 Modified: 12 Nov 2003 18:16
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Not a Bug Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S3 (Non-critical)
Version:4.0.16 OS:Linux (Debian GNU/Linux)
Assigned to: CPU Architecture:Any

[12 Nov 2003 17:43] Christian Hammers
Description:
The mysqladmin program dies when variable
default-character-set is set in /etc/mysql/my.conf although with --help it says that it would understand the options in the "client" section.
mysqldump, mysql and other client utilities all work fine.

How to repeat:
Put in your config:
  [client]
  default-character-set=koi8_ru
and start "mysqladmin".

Suggested fix:
none
[12 Nov 2003 18:16] Paul DuBois
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.mysql.com/documentation/ and the instructions on
how to report a bug at http://bugs.mysql.com/how-to-report.php

Well, actually...

The --help message doesn't say that mysqladmin will
_understand_ all options that you put in the [client] group.
It says that it will _read_ that group.  It's up to you to
put only options in that group that apply to all client
programs.  --default-character-set is not one of the
options listed in the --help message as being legal
for mysqladmin.

You may want instead to list the option as
loose-default-character-set=koi8_ru

The effect of "loose" is described here:

http://www.mysql.com/doc/en/Option_files.html