Bug #6221 mysqld_multi doesn't read the init_connect option in my.cnf correctly
Submitted: 22 Oct 2004 20:51 Modified: 26 Apr 2005 13:05
Reporter: Shuichi Tamagawa Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S3 (Non-critical)
Version:4.1.7 OS:Linux (SuSE Linux 9.0)
Assigned to: Jani Tolonen CPU Architecture:Any

[22 Oct 2004 20:51] Shuichi Tamagawa
Description:
If you have an 'init_connect' option in my.cnf, mysqld_multi program doesn't read the option correctly.

How to repeat:
Suppose that the entry of my.cnf is as follows...
------------------------------------------------------------------
[mysqld41070]
basedir = /usr/local/mysql/41070
datadir = /usr/local/mysql/41070/data
pid-file = /usr/local/mysql/41070/data/linux.pid
mysqld = /usr/local/mysql/41070/libexec/mysqld
socket = /usr/local/mysql/41070/mysql.sock
port = 41070
init_connect = 'SET AUTOCOMMIT=0'
------------------------------------------------------------------

Run the mysqld_multi program.

shuichi@linux:/usr/local/mysql/bin> ./mysqld_multi start 41070
WARNING: Log file disabled. Maybe directory/file isn't writable?
mysqld_multi log file version 2.11; run: Fri Oct 22 14:01:55 2004
Starting MySQL servers
shuichi@linux:/usr/local/mysql/bin> /usr/local/mysql/41070/libexec/mysqld: Too many arguments (first extra is 'AUTOCOMMIT=0').
Use --help to get a list of available options

If you comment out the init_connect option, it works well.

#mysqld_multi version is 2.11
[26 Apr 2005 13:05] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/24315
[26 Apr 2005 13:05] Jani Tolonen
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

Additional info:

Fixed into 5.0.