Note
This variable is available starting with V2.1.
Description
max_user_connections specifies the maximum number of connections that a single user can establish with an OBServer node.
Privilege requirements
Query variables
Global level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_GLOBAL_VARIABLEview (Oracle mode) or theinformation_schema.GLOBAL_VARIABLESview (MySQL mode) to view the values of global system variables.Session level
systenants and all user tenants can execute theSHOW VARIABLESstatement or query theSYS.TENANT_VIRTUAL_SESSION_VARIABLEview (Oracle mode) or theinformation_schema.SESSION_VARIABLESview (MySQL mode) to view the values of session system variables.
Modify variables
systenants can directly modify the values of global system variables.MySQL user tenants must have the
SUPERorALTER SYSTEMprivilege to modify the values of global system variables.Oracle user tenants must have the
ALTER SYSTEMprivilege to modify the values of global system variables.
Attributes
| Attribute | Description |
|---|---|
| Type | Uint |
| Default value | 0, indicating that the number of connections is not limited. |
| Value range | [0, 4294967295] |
| Scope |
|
| Modifiable | You can execute the SET GLOBAL statement to modify the value of this variable in Global mode. You cannot execute the ALTER SESSION SET statement to modify the value of this variable in Session mode. |
Examples
Set the maximum number of connections that a single user can establish with an OBServer node to be unlimited.
obclient> SET GLOBAL max_user_connections =0;