[Maria-discuss] mysqld --initialize
Hi all, Does MariaDB intend to support “mysqld --initialize”? Thank you! -Felipe Gasper Mississauga, Ontario
Hi, Felipe! On Mar 21, Felipe Gasper wrote:
Hi all,
Does MariaDB intend to support “mysqld --initialize”?
Thank you!
We've just discussed that a couple of days ago :) I don't think there was anyone against supporting it, so I'd answer your question with "yes". But when it'll be supported is not clear. Too late for 10.4. 10.5 is possible, but no guarantees. Regards, Sergei Chief Architect MariaDB and security@mariadb.org
Hi! Please accept my vote against this feature. I don't think mysqld should carry code that is otherwise only needed for initialisation. At the same time I'm not big fan of mysql_install_db. My preference is to have some C++ mariatool that would replace both mysql_install_db and mysqld_safe (and may be even more shell stuff). Regards, Sergey On Fri, Mar 22, 2019 at 8:55 PM Sergei Golubchik <serg@mariadb.org> wrote:
Hi, Felipe!
On Mar 21, Felipe Gasper wrote:
Hi all,
Does MariaDB intend to support “mysqld --initialize”?
Thank you!
We've just discussed that a couple of days ago :)
I don't think there was anyone against supporting it, so I'd answer your question with "yes".
But when it'll be supported is not clear. Too late for 10.4. 10.5 is possible, but no guarantees.
Regards, Sergei Chief Architect MariaDB and security@mariadb.org
_______________________________________________ Mailing list: https://launchpad.net/~maria-discuss Post to : maria-discuss@lists.launchpad.net Unsubscribe : https://launchpad.net/~maria-discuss More help : https://help.launchpad.net/ListHelp
Hi, Sergey! On Mar 22, Sergey Vojtovich wrote:
Hi!
Please accept my vote against this feature. I don't think mysqld should carry code that is otherwise only needed for initialisation.
At the same time I'm not big fan of mysql_install_db. My preference is to have some C++ mariatool that would replace both mysql_install_db and mysqld_safe (and may be even more shell stuff).
Yes, one of the ideas was to let `mysqld --initialize` to invoke such a tool as needed. There are different problems that this could solve. mysql_install_db being a shell script doesn't work on Windows. That's one. A C++ tool will solve that. Another issue - a tool runs in a different environment as compared to mysqld, that is, the tool isn't started by systemd, so it'll miss, for example, UMASK, if it's set in the service file. This could be solved by mysqld itself doing the initialization. There may be other issues too. Felipe, what are you trying to solve with mysqld --initialize? Regards, Sergei Chief Architect MariaDB and security@mariadb.org
participants (3)
-
Felipe Gasper
-
Sergei Golubchik
-
Sergey Vojtovich