serg,
This is something for you to decide, I'm not sure what would be a better (or less bad) fix.
The logic which mixes up slave identificators and option names doesn't look great, but since we've let it reach GA, I guess it will have to stay (I really don't remember how it made it there).
The logic which replaces '_' with '-' in mysqld_safe is intentional, it was introduced by the following revision:
revision-id: guilhem@mysql.com-20091118203617-3jfudef971r7bf2y
|
committer: Guilhem Bichot <guilhem@mysql.com>
|
branch nick: mysql-next-mr-bugfixing
|
timestamp: Wed 2009-11-18 21:36:17 +0100
|
message:
|
Backport of the fix for BUG#40368 "mysqld_safe not honouring underscore same as dash on server options" from 6.0
|
(revision-id:guilhem@mysql.com-20090505113602-l12kxupeatve18dh).
|
Such bug led "mysqld_safe --core_file_size=#" to not work because mysqld_safe wouldn't recognize
|
that "ulimit -c" is needed; only --core-file-size=# worked. Same for --open_files_limit and other
|
options with _ where mysqld_safe needs to do something more than passing to mysqld.
|
Original fix by Erik Ljungstrom erik at ibiblio dot org ; slightly modified here.
|
Tested on all internally accessible Unix.
|
So, while technically it's primitive to remove the conversion, probably we'll need to re-do core_file_size and the others. Since the "other options" are not listed, we might have to do that for every option which has special logic in mysqld_safe, and then it might make sense to do it a different way, e.g. to make a local copy of options for mysqld_safe's tampering, but keep the original ones to pass to mysqld, but it makes the change rather big. Or maybe you'll come up with a better idea, I don't like any of those.
Could you please attach all your config files which contain either this-instance-specific or common sections, and the complete output of SHOW VARIABLES and SHOW ALL SLAVES STATUS \G ? (Please remove/obfuscate the passwords and any private info).
And the server command line as returned by ps -ef | grep mysqld or alike.
Thanks.