Bug #1276 | MYSQL_UNIX_PORT ignored by mysqld | ||
---|---|---|---|
Submitted: | 14 Sep 2003 3:29 | Modified: | 27 Sep 2003 9:48 |
Reporter: | [ name withheld ] | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 3.23.56, 3.23.57 | OS: | Linux (linux) |
Assigned to: | CPU Architecture: | Any |
[14 Sep 2003 3:29]
[ name withheld ]
[15 Sep 2003 12:25]
[ name withheld ]
The additional arguments load_defaults places in argv actually seem to come from the [mysqld] section of /etc/my.cnf (as opposed to being compiled in as I originally wrote).
[18 Sep 2003 7:01]
Sergei Golubchik
I can see no bug here. /etc/my.cnf is supposed to override settings from environment variables
[18 Sep 2003 19:54]
[ name withheld ]
Then problem is with safe_mysqld. safe_mysqld sets the MYSQL_UNIX_PORT variable from the value given for --socket on the command line. But: (from http://www.mysql.com/doc/en/Environment_variables.html) Note that any options on the command-line will take precedence over values specified in configuration files and environment variables, and values in configuration files take precedence over values in environment variables. So, the command line option should take precedence, but it's internally turned into an environment variable which doesn't take precedence.
[18 Sep 2003 19:59]
[ name withheld ]
Personally, I think environment variables should take precedence anyway. If you're playing with a client and server, and you want to quickly try something else, it's very easy to set an environment variable. No file editing, it can be automated very easily etc. Specifically, ideas like the "quick and dirty" method from: http://www.mysql.com/doc/en/Multiple_Unix_servers.html are made less useful... Environment variables are nice for quick experimentation... files for real configuration.
[27 Sep 2003 9:48]
Sergei Golubchik
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bugfix, yourself. More information about accessing the source trees is available at http://www.mysql.com/doc/en/Installing_source_tree.html as this is a minor issue, I fixed it in 4.0.16