1. Please describe the problem: mysql_setpermission fails to connect to local mariadb, claiming that DBI connect(';host=localhost;port=3306','newuser',...) failed: Connection error: port cannot be specified when host is localhost or embedded at /usr/bin/mysql_setpermission line 116. the DBI connect string comes from the mysql_setpermission command defaults (was not a user input) 2. Specify used package versions mariadb-server-utils-10.5.10-1.fc34 5. Can you reproduce this issue? If so, please provide the steps to reproduce the issue below: # systemctl start mariadb # mysql mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password'; mysql> GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'localhost' WITH GRANT OPTION; mysql> FLUSH PRIVILEGES; # mysql_setpermission --user newuser
Fix for upstream and description is here: https://github.com/MariaDB/server/pull/1896 Patch for fedora will be provided in next comment.
Fixed in upstream (versions 10.2->dev). No patches needed.
This bug is reproducible in all Fedora releases. Setting Version to Rawhide.
Merged: https://src.fedoraproject.org/rpms/mariadb/pull-request/36 Built on Rawhide: https://koji.fedoraproject.org/koji/taskinfo?taskID=74557909