[MDEV-25409] cannot GRANT on newly created self (DROP USER me; CREATE USER me; GRANT .. TO me) Created: 2021-04-14  Updated: 2021-04-14  Resolved: 2021-04-14

Status: Closed
Project: MariaDB Server
Component/s: Authentication and Privilege System
Affects Version/s: 10.2.37
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Daniel Black Assignee: Unassigned
Resolution: Not a Bug Votes: 0
Labels: None


 Description   

MariaDB [(none)]> show create user;
+--------------------------------+
| CREATE USER for root@localhost |
+--------------------------------+
| CREATE USER 'root'@'localhost' |
+--------------------------------+
1 row in set (0.00 sec)
 
MariaDB [(none)]> drop user root@localhost;
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [(none)]> create user root@locahost identified by 'sugar plum fairy';
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [(none)]> grant all on test.* to root@localhost;
ERROR 1133 (28000): Can't find any matching row in the user table
 
MariaDB [(none)]> select version();
+-----------------+
| version()       |
+-----------------+
| 10.2.38-MariaDB |
+-----------------+
1 row in set (0.00 sec)

Expected behaviour, grant should be allowed.



 Comments   
Comment by Daniel Black [ 2021-04-14 ]

I can't spell localhost consistently. Doh.

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