Bug #2598 minor bugfix to mysqld_safe
Submitted: 1 Feb 2004 7:48 Modified: 2 Feb 2004 5:04
Reporter: Christian Hammers (Silver Quality Contributor) (OCA) Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.0.17 OS:Linux (Debian GNU/Linux)
Assigned to: Lenz Grimmer CPU Architecture:Any

[1 Feb 2004 7:48] Christian Hammers
Description:
The safe_mysql_unix_port variable is set before the config file is read making
it unchangeable.
Originally reported as bug against the Debian package by Ingo Steinert <ingo@hddkiller.com> 

How to repeat:
try to change the socket in /etc/mysql/my.cnf

Suggested fix:
--- /usr/bin/mysqld_safe        2004-01-22 15:39:53.000000000 +0100
+++ /home/ch/t  2004-02-01 16:12:40.000000000 +0100
@@ -114,7 +114,6 @@
   ledir=/usr/sbin
 fi
 
-safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-/var/run/mysqld/mysqld.sock}}
 user=mysql
 niceness=0
 
@@ -150,6 +149,8 @@
 parse_arguments `$print_defaults --loose-verbose $defaults mysqld server mysqld_safe safe_mysqld`
 parse_arguments PICK-ARGS-FROM-ARGV "$@"
 
+safe_mysql_unix_port=${mysql_unix_port:-${MYSQL_UNIX_PORT:-/var/run/mysqld/mysqld.sock}}
+
 if test ! -x $ledir/$MYSQLD
 then
   echo "The file $ledir/$MYSQLD doesn't exist or is not executable"
[2 Feb 2004 5:03] Sergei Golubchik
already fixed in 4.0.18, thanks!
[2 Feb 2004 5:04] 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