Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-34289

mariadb-dump: `--disable-ssl-verify-server-cert` expects a positional parameter

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 11.4.2
    • N/A
    • Scripts & Clients
    • 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.)
      ```

      Attachments

        Activity

          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

          serg Sergei Golubchik added a comment - 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

          People

            Unassigned Unassigned
            C0rn3j Martin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.