I have dev-db/mariadb-10.2.19, dev-db/mariadb-connector-c-3.0.6-r1 and dev-db/mysql-connector-c-6.1.11-r1 installed and running /usr/bin/mysqld_safe of mariadb prints the error: my_print_defaults: [ERROR] unknown option '--mysqld' This is caused by /usr/bin/mysqld_safe using /usr/bin/my_print_defaults of dev-db/mysql-connector-c (which does not know the option '--mysqld') instead of /usr/libexec/mariadb/my_print_defaults of dev-db/mariadb. As a workaround I changed the find_in_bin() function of /usr/bin/mysqld_safe to: find_in_bin() { if test -x "$MY_BASEDIR_VERSION/libexec/mariadb/$1" then echo "$MY_BASEDIR_VERSION/libexec/mariadb/$1" elif test -x "$MY_BASEDIR_VERSION/bin/$1" then echo "$MY_BASEDIR_VERSION/bin/$1" elif test -x "/usr/bin/$1" then echo "/usr/bin/$1" else echo "$1" fi }
This also occurs with version 10.1.37 which was stabilized recently. Changing the function find_in_bin as indicated above doesn't help.
I should add that the problem still occurs after having uninstalled mariadb-connector-c
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/mysql-extras.git/commit/?id=59179b9fa6353c6d770839914cb2ded055d733e4 commit 59179b9fa6353c6d770839914cb2ded055d733e4 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2019-03-05 20:38:15 +0000 Commit: Brian Evans <grknight@gentoo.org> CommitDate: 2019-03-05 20:38:15 +0000 Adjust patch for my_print_defaults location in mysqld_safe Bug: https://bugs.gentoo.org/show_bug.cgi?id=672698 Signed-off-by: Brian Evans <grknight@gentoo.org> ..._all_mariadb-10.1.16-without-clientlibs-tools.patch | 18 ++++++++++++++++++ ..._all_mariadb-10.2.16-without-clientlibs-tools.patch | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8f945a697b85889e16706719ecc537cd68b9ab4 commit e8f945a697b85889e16706719ecc537cd68b9ab4 Author: Brian Evans <grknight@gentoo.org> AuthorDate: 2019-03-05 21:05:19 +0000 Commit: Brian Evans <grknight@gentoo.org> CommitDate: 2019-03-05 21:05:19 +0000 dev-db/mariadb: Revbumps to fix galera and mysqld_safe bugs Due to client-libs changes Closes: https://bugs.gentoo.org/672698 Closes: https://bugs.gentoo.org/677674 Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Brian Evans <grknight@gentoo.org> dev-db/mariadb/Manifest | 2 +- dev-db/mariadb/{mariadb-10.1.38.ebuild => mariadb-10.1.38-r1.ebuild} | 2 +- dev-db/mariadb/{mariadb-10.2.22.ebuild => mariadb-10.2.22-r1.ebuild} | 2 +- dev-db/mariadb/{mariadb-10.3.12.ebuild => mariadb-10.3.12-r1.ebuild} | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-)
Did this reappear with 10.3.13? systemd[1]: Starting MariaDB 10.3.13 database server... sh[624]: my_print_defaults: [ERROR] unknown option '--mysqld' mysqld[634]: 2019-05-22 12:01:41 0 [Note] /usr/sbin/mysqld (mysqld 10.3.13-MariaDB-log) starting as process 634 ... systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: mariadb.service: Failed with result 'exit-code'. systemd[1]: Failed to start MariaDB 10.3.13 database server. Using dev-db/mysql-connector-c-6.1.11-r1, dev-db/mariadb-connector-c is not installed.
same problems occurs on a fresh gentoo install with default/linux/amd64/17.1/desktop/gnome/systemd profile and mariadb 10.4.6