0

I have a CentOS 7 box on which Mariadb 10.3.18 is installed from the mariadb repo. After recent update via yum, the mysqld is no longer accepting any command line parameters:

# mysqld --print-defaults
mysql: unknown option '--print-defaults'

it happens with any other parameters except --help. Is it a bug in the latest mariadb version or am I missing something?

Bill Karwin
  • 538,548
  • 86
  • 673
  • 828
user2531657
  • 339
  • 2
  • 9
  • What does it say when you run with `--help` which works? – elenst Sep 29 '19 at 17:02
  • What does `whereis mysqld` and `type -a mysqld` say? Does the result match mysqld in your installation? – Georg Richter Sep 29 '19 at 20:33
  • `# mysqld --help` returns as expected: mysqld Ver 10.3.18-MariaDB for Linux on x86_64 (MariaDB Server) ... Usage: mysqld [OPTIONS] – user2531657 Sep 30 '19 at 10:30
  • `# type -a mysqld` mysqld is /usr/sbin/mysqld – user2531657 Sep 30 '19 at 10:30
  • The error (`mysql: unknown option '--print-defaults'`) is not from `mysqld` at all, it's from `mysql` client. But if `/usr/sbin/mysqld` was just symlinked to `mysql`, then `mysqld --help` would have returned help from `mysql`, not from `mysqld`. Moreover, even the `mysql` client shouldn't fail on `--print-defaults`, it's still a valid option. Try checking your original command line for invisible symbols which mess up both the executable name and the arguments. And of course check what `/usr/sbin/mysqld` really is -- unlikely as it is, it might be replaced by some misbehaving wrapper. – elenst Sep 30 '19 at 12:06

0 Answers0