https://bugzilla.novell.com/show_bug.cgi?id=353120
User richard.bos@xs4all.nl added comment
https://bugzilla.novell.com/show_bug.cgi?id=353120#c19
--- Comment #19 from Richard Bos
I think it's good as a starting point, provided you're going to work on the two FIXME's ;-) It would be nice if the database was automatically created and updated in both modes (the update is not needed urgently, though).
Done. See attached patch. It's not complete, as /etc/init.d/mysql has not been update to reflect the changes in this patch. But I assume that you understand what needs to be done.
Regarding /etc/my.cnf: We could add example sections, I'd probably prefer adding them as comments
That's fine with me.
(or adding a [mysqld1] that behaves the same as [mysqld], so that switching to mysqld_multi initially doesn't change anything).
We can do this, but only when this section is commented out and accompanied with a strong comment that informs the user about the following possible problem when mysqld1 is started; - the regular way of starting mysql should not be used anymore at all. Because that will result in 2 server processes that use the database files. This may corrupt the database!
But: then the config has to be marked as %config(noreplace), so that it doesn't get installed if the user changed his copy.
That's fine with me, strange that this is not already the case ;)
(Also, when we touch the config, it's probably good time to get rid of --err-log and replace it with --log-error, because --err-log doesn't exist since 5.0).
I leave that up to you.
Then we need the sysconfig file, check http://en.opensuse.org/SUSE_Package_Conventions/Sysconfig how to deal with sysconfig files.
Okay.
Thanks for working on this feature so far!
Hopefully, it is now enough ready to start including it in the openSUSE distro (I'll do some more fine tuning, so it will be easier to integrate it). Let me know your thoughts. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.