Documentation — Administrator's guide
Users are accounts of the cluster, kept in the dictionary. They are not Linux or MariaDB accounts.
create user NAME identified by 'PASSWORD';
alter user NAME identified by 'PASSWORD';
drop user NAME [cascade];
identified by, the account is created but cannot connect.drop user refuses to remove a user who owns tables. With cascade, the user and all their tables are removed.system, an administrator. Change its password at once.An account is in the group users or admin. Administrators can do everything. grant dba to NAME; moves a user to the group admin; revoke dba from NAME; moves it back. An administrator cannot revoke their own DBA privilege.
grant PRIVILEGE on TABLE to USER;
revoke PRIVILEGE on TABLE from USER;
The privileges are ALL, ALTER, DELETE, DROP, DUMP, EXECUTE, INSERT, LOCK, SELECT, TRUNCATE and UPDATE. The owner of a table and the administrators can grant them.
show users;
show grants for NAME;
show connections;