Bug #19452 mysql_upgrade: reads [client] group, but doesn't understand host option
Submitted: 30 Apr 2006 23:49 Modified: 2 Sep 2006 1:55
Reporter: Paul DuBois Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.0, 5.1 OS:
Assigned to: Alexey Botchkov CPU Architecture:Any

[30 Apr 2006 23:49] Paul DuBois
Description:
mysql_upgrade reads the [client] option group, but
doesn't understand certain common options that people
place in that group, such as "host".

How to repeat:
Put a host=host_name option in your [client] group,
then run mysql_upgrade:

% bin/mysql_upgrade
bin/mysql_upgrade: unknown variable 'host=localhost'

Note that you can't even run mysql_upgrade --help under
these conditions unless you remember to use --no-defaults.

Suggested fix:
Change mysql_upgrade not to read the [client] group.
The [mysql_upgrade] group should be sufficient.
[2 May 2006 13:27] MySQL Verification Team
Thank you for the bug report.
[3 Jul 2006 9:02] 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/8634
[26 Jul 2006 21:20] Jim Winstead
Patch looks good to me.
[26 Jul 2006 21:29] Magnus BlÄudd
Patch looks ok to me
[16 Aug 2006 20:48] Reggie Burnett
Fixed in 5.0.25
[2 Sep 2006 1:55] Paul DuBois
Noted in 5.0.25 changelog.

mysql_upgrade no longer reads the [client] option file group because
it is not a client and did not understand client options such as
host. Now it reads only the [mysql_upgrade] group.