[MDEV-22485] mysqlslap does not use current user as default for connecting to server Created: 2020-05-06  Updated: 2020-12-12  Resolved: 2020-12-07

Status: Closed
Project: MariaDB Server
Component/s: Scripts & Clients
Affects Version/s: 5.5, 10.1, 10.2, 10.3, 10.4, 10.5
Fix Version/s: 10.3.28, 10.4.18, 10.5.9

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Anel Husakovic
Resolution: Fixed Votes: 0
Labels: beginner-friendly

Issue Links:
Relates
relates to MDEV-22483 mysql_upgrade does not use current us... Closed
relates to MDEV-22484 mariabackup does not use current user... Open

 Description   

mysqlslap promises to use the current user to connect to the server unless it was specified in options, but it doesn't happen, it prints no default value in help and connects as root instead,

10.5 f544a712

$ bin/mysqlslap --help | grep user
  -u, --user=name     User for login if not current user.
user                                  (No default value)

200506 20:34:26     10 Connect  root@localhost as anonymous on 
                    11 Connect  root@localhost as anonymous on mysqlslap
                    12 Connect  root@localhost as anonymous on mysqlslap
                    13 Connect  root@localhost as anonymous on mysqlslap
200506 20:34:27     14 Connect  root@localhost as anonymous on mysqlslap
                    15 Connect  root@localhost as anonymous on mysqlslap
                    16 Connect  root@localhost as anonymous on mysqlslap
                    17 Connect  root@localhost as anonymous on mysqlslap
                    18 Connect  root@localhost as anonymous on mysqlslap
                    19 Connect  root@localhost as anonymous on mysqlslap
                    20 Connect  root@localhost as anonymous on mysqlslap

I suppose the easiest would be to change the help text.



 Comments   
Comment by Anel Husakovic [ 2020-12-07 ]

Pushed to 10.3 with 47c4caf1bfe1a (PR #1649) and bc2dc83cb56 as a test case.

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