[MDEV-22484] mariabackup does not use current user as default for connecting to server Created: 2020-05-06  Updated: 2023-04-27

Status: Open
Project: MariaDB Server
Component/s: mariabackup
Affects Version/s: 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.4, 10.5, 10.6

Type: Bug Priority: Minor
Reporter: Elena Stepanova Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-22483 mysql_upgrade does not use current us... Closed
relates to MDEV-22485 mysqlslap does not use current user a... Closed

 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).


Generated at Thu Feb 08 09:15:04 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.