Bug #810 Can't specify "default group"
Submitted: 8 Jul 2003 7:17 Modified: 8 Jul 2003 8:39
Reporter: Peter Burns Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Command-line Clients Severity:S4 (Feature request)
Version:3.23.55 OS:Linux (linux)
Assigned to: Jani Tolonen CPU Architecture:Any

[8 Jul 2003 7:17] Peter Burns
Description:
When using MySQL command-line client, you can specify the MYSQL_READ_DEFAULT_FILE by using the --defaults-file=# command-line parameter, but you cannot specify MYSQL_READ_DEFAULT_GROUP. This would be very useful!

How to repeat:
N/A

Suggested fix:
Add command line option --defaults-group=#, overriding the default ("mysql" ?).
[8 Jul 2003 8:06] Jani Tolonen
Please don't add feature requests in bugs db.

A few workarounds though, which are not quite same thing, but maybe useful:

1.) my_print_defaults group_name | xargs mysql ...
2.) create another defaults file(s) and use --defaults-file option.

Regards,
Jani