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

mariabackup does not use current user as default for connecting to server

    XMLWordPrintable

    Details

      Description

      mariabackup promises to use the current user to connect to the server unless it was specified in options, but it doesn't happen, it attempts to connect with an empty value instead:

      10.5 f544a712

      bin/mariabackup based on MariaDB server 10.5.3-MariaDB Linux (x86_64)
        -u, --user=name     This option specifies the MySQL username used when
                            connecting to the server, if that's not the current user.
       
      user                              (No default value)
      

      $ bin/mariabackup --protocol=tcp --backup --target-dir=`pwd`/backup
      [00] 2020-05-06 20:24:58 Connecting to MySQL server host: localhost, user: not set, password: not set, port: not set, socket: not set
      [00] 2020-05-06 20:24:58 Failed to connect to MySQL server: Access denied for user ''@'localhost' (using password: NO).
      

      Either it should be fixed, or the help text should be changed (which should be done in all versions where it doesn't work).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              elenst Elena Stepanova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Git Integration