Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
11.4.2
-
None
-
Arch Linux
Description
Working command for 11.3: `mariadb-dump --defaults-file=/root/.my.cnf nextcloud`
Working command for 11.4: `mariadb-dump --defaults-file=/root/.my.cnf --disable-ssl-verify-server-cert nextcloud`
Broken command for 11.4: `mariadb-dump --disable-ssl-verify-server-cert --defaults-file=/root/.my.cnf nextcloud`
`mariadb-dump: unknown variable 'defaults-file=/root/.my.cnf'`
It seems to me that `--disable-ssl-verify-server-cert` is expecting a shadow parameter?
Also the help page seems to suggest to use `skip` instead of `disable`?
```bash
[0] # mariadb-dump --help | grep ssl
--ssl-verify-server-cert
(Defaults to on; use --skip-ssl-verify-server-cert to disable.)
```
No, it doesn't expect a parameter.
But -defaults-file must be the first on the command line:
$ client/mariadb-dump --help
...
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit.
--no-defaults Don't read default options from any option file.
The following specify which files/extra groups are read (specified before remaining options):
--defaults-file=# Only read default options from the given file #.
--defaults-extra-file=# Read this file after the global files are read.
--defaults-group-suffix=# Additionally read default groups with # appended as a suffix.
--skip-X and --disable-X are synonyms and are generally equivalent to --X=0