Creating a user in MariaDB

From Leechfinger
Revision as of 18:25, 24 May 2024 by Qais (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Create new super user with all rights

CREATE USER 'user1'@localhost IDENTIFIED BY 'password1';
GRANT ALL PRIVILEGES ON *.* TO 'user1'@localhost IDENTIFIED BY 'password1';
FLUSH PRIVILEGES;
SHOW GRANTS FOR 'user1'@localhost;

Drop the user

DROP USER 'user1'@localhost;