[MDEV-11181] Resource option MAX_USER_CONNECTIONS in CREATE USER is limited by 2**32 Created: 2016-10-30  Updated: 2016-10-30

Status: Open
Project: MariaDB Server
Component/s: Admin statements, Authentication and Privilege System
Affects Version/s: 10.2
Fix Version/s: 10.2

Type: Bug Priority: Trivial
Reporter: Elena Stepanova Assignee: Vicențiu Ciorbaru
Resolution: Unresolved Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-7978 CREATE/ALTER USER as in 5.7 Closed

 Description   

In MariaDB 10.2 MAX_USER_CONNECTIONS cannot be set to a value greater than 2147483647. In MySQL 5.7 bigger values work.
I don't think it makes a practical difference, but better check if it's intentional, because the produced error code is strange – it fails with a syntax error, not with an overflow or anything like that.

10.2

MariaDB [test]> CREATE USER foo IDENTIFIED BY 'Aabcd1$ee' WITH MAX_USER_CONNECTIONS 2147483648;
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 '2147483648' at line 1
MariaDB [test]> CREATE USER foo IDENTIFIED BY 'Aabcd1$ee' WITH MAX_USER_CONNECTIONS 2147483647;
Query OK, 0 rows affected (0.00 sec)
 
MariaDB [test]> select @@version;
+----------------------+
| @@version            |
+----------------------+
| 10.2.3-MariaDB-debug |
+----------------------+
1 row in set (0.00 sec)

MySQL 5.7

MySQL [test]> CREATE USER foo IDENTIFIED BY 'Aabcd1$ee' WITH MAX_USER_CONNECTIONS 2147483648;
Query OK, 0 rows affected (0.01 sec)
 
MySQL [test]> select @@version;
+--------------+
| @@version    |
+--------------+
| 5.7.16-debug |
+--------------+
1 row in set (0.00 sec)


Generated at Thu Feb 08 07:47:56 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.