|
| 1 | +--- |
| 2 | +{ |
| 3 | + "title": "User Property", |
| 4 | + "language": "en" |
| 5 | +} |
| 6 | +--- |
| 7 | + |
| 8 | +<!-- |
| 9 | +Licensed to the Apache Software Foundation (ASF) under one |
| 10 | +or more contributor license agreements. See the NOTICE file |
| 11 | +distributed with this work for additional information |
| 12 | +regarding copyright ownership. The ASF licenses this file |
| 13 | +to you under the Apache License, Version 2.0 (the |
| 14 | +"License"); you may not use this file except in compliance |
| 15 | +with the License. You may obtain a copy of the License at |
| 16 | +
|
| 17 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 18 | +
|
| 19 | +Unless required by applicable law or agreed to in writing, |
| 20 | +software distributed under the License is distributed on an |
| 21 | +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 22 | +KIND, either express or implied. See the License for the |
| 23 | +specific language governing permissions and limitations |
| 24 | +under the License. |
| 25 | +--> |
| 26 | + |
| 27 | +# User configuration item |
| 28 | + |
| 29 | +This document mainly introduces related configuration items at the User level. The configuration of the User level is mainly effective for a single user. Each user can set their own User property. Does not affect each other. |
| 30 | + |
| 31 | +## View configuration items |
| 32 | + |
| 33 | +After the FE is started, on the MySQL client, use the following command to view the User configuration items: |
| 34 | + |
| 35 | +`SHOW PROPERTY [FOR user] [LIKE key pattern]` |
| 36 | + |
| 37 | +The specific syntax can be queried through the command: `help show property;`. |
| 38 | + |
| 39 | +## Set configuration items |
| 40 | + |
| 41 | +After FE is started, on the MySQL client, modify the User configuration items with the following command: |
| 42 | + |
| 43 | +`SET PROPERTY [FOR'user'] 'key' = 'value' [,'key' ='value']` |
| 44 | + |
| 45 | +The specific syntax can be queried through the command: `help set property;`. |
| 46 | + |
| 47 | +User-level configuration items will only take effect for the specified users, and will not affect the configuration of other users. |
| 48 | + |
| 49 | +## Application examples |
| 50 | + |
| 51 | +1. Modify the max_user_connections of user Billie |
| 52 | + |
| 53 | + Use `SHOW PROPERTY FOR 'Billie' LIKE '%max_user_connections%';` to check that the current maximum number of links for Billie users is 100. |
| 54 | + |
| 55 | + Use `SET PROPERTY FOR 'Billie' 'max_user_connections' = '200';` to modify the current maximum number of connections for Billie users to 200. |
| 56 | + |
| 57 | +## Configuration item list |
| 58 | + |
| 59 | +### max_user_connections |
| 60 | + |
| 61 | + The maximum number of user connections, the default value is 100 In general, this parameter does not need to be changed unless the number of concurrent queries exceeds the default value. |
| 62 | + |
| 63 | +### resource |
| 64 | + |
| 65 | +### quota |
| 66 | + |
| 67 | +### default_load_cluster |
| 68 | + |
| 69 | +### load_cluster |
0 commit comments