Bug #20630 | Remove restriction on option file parameters being first | ||
---|---|---|---|
Submitted: | 22 Jun 2006 15:45 | Modified: | 22 Jun 2006 16:18 |
Reporter: | Rob Desbois | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: General | Severity: | S4 (Feature request) |
Version: | 5.0.22 (+?) | OS: | Any (all) |
Assigned to: | CPU Architecture: | Any |
[22 Jun 2006 15:45]
Rob Desbois
[22 Jun 2006 16:12]
MySQL Verification Team
Thank you for the bug report. I agree with a most adequate error mesage: miguel@hegel:~/dbs/5.0> bin/mysql -uroot --defaults-file=/home/miguel/dbs/5.0/my.cnf bin/mysql: unknown variable 'defaults-file=/home/miguel/dbs/5.0/my.cnf'
[22 Jun 2006 16:18]
Rob Desbois
Do you know of the reasoning - if any - behind the restriction? I haven't looked at the MySQL source so don't know of it.
[22 Jun 2006 16:46]
MySQL Verification Team
At first glance I think is the file option and command option precedence, for example below you can see I have a wrong socket path on my.cnf and the command option overrides it: miguel@hegel:~/dbs/5.0> bin/mysql --defaults-file=/home/miguel/dbs/5.0/my.cnf -uroot ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/home/miguel/dbs/5.0/mysql.sock' (2) miguel@hegel:~/dbs/5.0> bin/mysql --defaults-file=/home/miguel/dbs/5.0/my.cnf -uroot --socket=/tmp/mysql.sock Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 to server version: 5.0.23-debug Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql>