[MDEV-17207] mysqld_multi calls my_print_defaults with unkown option "--mysqld" Created: 2018-09-17  Updated: 2018-09-21  Resolved: 2018-09-19

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 10.1.34
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Robert Holzknecht Assignee: Sergei Golubchik
Resolution: Cannot Reproduce Votes: 0
Labels: None
Environment:

Gentoo Linux



 Description   

I just upgraded mariadb from 10.0.28 to 10.1.34 And run into the following issue:

host - # > mysqld_multi start 1,2
my_print_defaults: [ERROR] unknown option '--mysqld'

I haven't changed anything in my my.cnf (defiend two instances: [mysqld1] and [mysqld2]).
Any deprecated options i have missed to change?

BR.
Rob



 Comments   
Comment by Sergei Golubchik [ 2018-09-19 ]

my_print_defaults supported --mysqld option in 5.5 since 5.5.37, in 10.0 since 10.0.11, and in all versions of 10.1

If you're getting this error you're probably using my_print_defaults from MySQL, not from MariaDB

Comment by Robert Holzknecht [ 2018-09-20 ]

I'm using Gentoo Linux.
The ebuild is fetching the tar.gz files from https://downloads.mariadb.org/interstitial/mariadb-10.1.34/source/mariadb-10.1.34.tar.gz
It's all build locally...

so....

Comment by Sergei Golubchik [ 2018-09-21 ]

I've just downloaded this tarball using your link above, and in extra/my_print_defaults.c file I see

  {"mysqld", 0, "Read the same set of groups that the mysqld binary does.",
   &opt_mysqld, &opt_mysqld, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},

which defines --mysqld command line option.

You might have some other my_print_defaults binary somewhere in your path

Comment by Robert Holzknecht [ 2018-09-21 ]

Thanks Sergei - just found it. You where absolutely right...

Where is my_print_defaults coming from?

~ # equery belongs my_print_defaults
 * Searching for my_print_defaults ...
dev-db/mariadb-10.1.34 (/usr/libexec/mariadb/my_print_defaults)
dev-db/mysql-connector-c-6.1.11-r1 (/usr/bin/my_print_defaults)

In Gentoo it seems you have explicitly define the so called "use-flag" client-libs: client-libs --> Build the client libraries from the server package instead of the C Connector packages _

~ # equery depends mysql-connector-c
 * These packages depend on mysql-connector-c:
dev-db/mariadb-10.1.34 (!client-libs ? dev-db/mysql-connector-c)
virtual/libmysqlclient-18 (dev-db/mysql-connector-c)

Sorry for bothering you...

BR,
Rob

Generated at Thu Feb 08 08:34:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.