CREATE USER
Creates a new user in a Lindorm instance. Run SHOW USERS to list existing users before creating a new one to avoid username conflicts.
Applicable engines and versions
Engine | Versions |
LindormTable | All versions |
LindormTSDB | All versions |
Syntax
CREATE USER [IF NOT EXISTS] user_identifier identified BY 'password';Parameters
Parameter | Description |
| Optional. If the username already exists and |
| The username. Requirements: 4–15 characters; may contain letters, digits, hyphens ( |
| The user's password. Must be of type VARCHAR. |
Example
Create a user named test_user with password testuserpassword. If the user already exists, the statement does nothing.
CREATE USER IF NOT EXISTS test_user identified BY 'testuserpassword';