Bug #79280 | mysqld --initialize --defaults-file is ignored if appended | ||
---|---|---|---|
Submitted: | 13 Nov 2015 21:07 | Modified: | 14 Nov 2015 0:56 |
Reporter: | Mario Beck | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Installing | Severity: | S3 (Non-critical) |
Version: | 5.7.9 | OS: | Oracle Linux (OL7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | defaults-file, initialize, mysqld |
[13 Nov 2015 21:07]
Mario Beck
[14 Nov 2015 0:56]
MySQL Verification Team
Thank you for the bug report. Output of: C:\dbs>5.7\bin\mysqld --help --verbose <CUT> The following options may be given as the first argument: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --print-defaults Print the program argument list and exit. --no-defaults Don't read default options from any option file, except for login file. --defaults-file=# Only read default options from the given file #. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ <CUT> mysqld Ver 5.7.9-log for Linux on x86_64 (MySQL Community Server (GPL)) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Starts the MySQL database server. Usage: mysqld [OPTIONS] Default options are read from the following files in the given order: /etc/my.cnf /etc/mysql/my.cnf /usr/etc/my.cnf ~/.my.cnf The following groups are read: mysqld server mysqld-5.7 The following options may be given as the first argument: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ --print-defaults Print the program argument list and exit. --no-defaults Don't read default options from any option file, except for login file. --defaults-file=# Only read default options from the given file #. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[14 Nov 2015 4:28]
MySQL Verification Team
I personally find it annoying when things are silently ignored. It violates the principal of least surprise. I'd prefer an error if --defaults-file is NOT the first option given. So while this is not a bug, looks like possibly a feature request?