Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.4.7
-
None
Description
CREATE USER and GRANT print a very nice error message if a specified authentication plugin does not exist. In contrast, ALTER USER prints a generic error message, so the root cause can be difficult to determine in some cases.
CREATE USER:
MariaDB [(none)]> CREATE USER IF NOT EXISTS 'testuser'@'127.0.0.1' IDENTIFIED VIA ed25518 USING PASSWORD('Pa$swd123');
|
ERROR 1524 (HY000): Plugin 'ed25518' is not loaded
|
GRANT:
MariaDB [(none)]> CREATE USER IF NOT EXISTS 'testuser'@'127.0.0.1' IDENTIFIED BY 'Pa$swd123';
|
Query OK, 0 rows affected (0.001 sec)
|
|
MariaDB [(none)]> GRANT USAGE ON *.* TO 'testuser'@'127.0.0.1' IDENTIFIED VIA ed25518 USING PASSWORD('Pa$swd123');
|
ERROR 1524 (HY000): Plugin 'ed25518' is not loaded
|
ALTER USER:
MariaDB [(none)]> CREATE USER IF NOT EXISTS 'testuser'@'127.0.0.1' IDENTIFIED BY 'Pa$swd123';
|
Query OK, 0 rows affected (0.001 sec)
|
|
MariaDB [(none)]> ALTER USER 'testuser'@'127.0.0.1' IDENTIFIED VIA ed25518 USING PASSWORD('Pa$swd123');
|
ERROR 1396 (HY000): Operation ALTER USER failed for 'testuser'@'127.0.0.1'
|
I think that ALTER USER's error message should be similar to the one used by CREATE USER and GRANT in this case.
Attachments
Issue Links
- is part of
-
MDEV-20435 ALTER USER prints bad error message if specified user account does not exist
- Open
- relates to
-
MDEV-20435 ALTER USER prints bad error message if specified user account does not exist
- Open
-
MDEV-22312 Bad error message for SET DEFAULT ROLE when user account is not granted the role
- Closed