DROP USER
Descriptionβ
The DROP USER
statement is used to delete a user.
Syntaxβ
DROP USER '<user_identity>'
Required Parametersβ
1. <user_identity>
The specified user identity.
Access Control Requirementsβ
The user executing this SQL command must have at least the following privileges:
Privilege | Object | Notes |
---|---|---|
ADMIN_PRIV | USER or ROLE | This operation can only be performed by users or roles with ADMIN_PRIV permissions |
Exampleβ
- Delete user jack@'192.%'
DROP USER 'jack'@'192.%'