On this page
Removes one or more user accounts.
DROP USER [IF EXISTS] user [, user] ...user:'user'[@'host_name']
user- valid user account.
@'host_part is optional.
name' If a hostname is not specified,
@'%'will be appended to the user string.
'demo-user'is equivalent to
'%'wildcard matches any hostname.
host_need not be quoted if they are legal as unquoted identifiers.
name Quotes must be used if a
host_string contains wildcard characters (such as
%), or a user string contains special characters (such as space or
-) or is a restricted keyword.
New login attempts from deleted users will fail.
However, DROP USER does not automatically close open database connections of the users deleted. In other words, deleted users that are still logged in to the database can run SQL commands against the database. To prevent deleted users from accessing the database using existing active connections, manually log the deleted users off the database server using the KILL CONNECTION command.
GRANTto create a user account and assign privileges.
This command causes implicit commits.
See COMMIT for more information.
This command can be run on any SingleStoreDB node (see Node Requirements for SingleStoreDB Commands).
If EXISTSis not specified, the command will fail if any user listed does not exist.
IF EXISTSis specified, the command will still attempt to drop every user listed, even if some of the users listed do not exist.
Refer to the Permission Matrix for the required permission.
DROP USER myAdmin;
Last modified: August 18, 2023