Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.4.15
-
None
Description
MariaDB [(none)]> show create user 'mariadb.sys'@'localhost';
|
+--------------------------------------------------------------------+
|
| CREATE USER for mariadb.sys@localhost |
|
+--------------------------------------------------------------------+
|
| CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK |
|
+--------------------------------------------------------------------+
|
1 row in set (0.000 sec)
|
|
MariaDB [(none)]> CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK;
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ACCOUNT LOCK' at line 1
|
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Assignee | Robert Bindar [ robertbindar ] |
Fix Version/s | 10.4 [ 22408 ] | |
Description |
{noformat} MariaDB [(none)]> show create user 'mariadb.sys'@'localhost'; +--------------------------------------------------------------------+ | CREATE USER for mariadb.sys@localhost | +--------------------------------------------------------------------+ | CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK | +--------------------------------------------------------------------+ 1 row in set (0.000 sec) MariaDB [(none)]> CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ACCOUNT LOCK' at line 1 {noformat} |
{noformat}
MariaDB [(none)]> show create user 'mariadb.sys'@'localhost'; +--------------------------------------------------------------------+ | CREATE USER for mariadb.sys@localhost | +--------------------------------------------------------------------+ | CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK | +--------------------------------------------------------------------+ 1 row in set (0.000 sec) MariaDB [(none)]> CREATE USER `mariadb.sys`@`localhost` PASSWORD EXPIRE ACCOUNT LOCK; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'ACCOUNT LOCK' at line 1 {noformat} |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Assignee | Robert Bindar [ robertbindar ] | Daniel Black [ danblack ] |
Fix Version/s | 10.4.17 [ 25024 ] | |
Fix Version/s | 10.5.8 [ 25023 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Resolution | Fixed [ 1 ] | |
Status | Confirmed [ 10101 ] | Closed [ 6 ] |
Summary | SHOW CREATE USER generates invalid SQL (password expirty/ account lock) | SHOW CREATE USER generates invalid SQL (password expiry/ account lock) |
Fix Version/s | 10.4.18 [ 25110 ] | |
Fix Version/s | 10.5.9 [ 25109 ] | |
Fix Version/s | 10.5.8 [ 25023 ] | |
Fix Version/s | 10.4.17 [ 25024 ] |
Workflow | MariaDB v3 [ 115331 ] | MariaDB v4 [ 158529 ] |
potential solutions:
a) change the syntax parser of CREATE USER/ALTER USER to accept both password expiry and account lock
or
b) SHOW CREATE USER outputs
{password expire option}CREATE USER ..
.
{account lock option}ALTER USER ...