Database Server
Database Server
Features of MariaDB:-
Reload privileges.
Finally, you will be prompted to reload the privileges table.
Type Y (yes) and press Enter.
products(product_id));
VALUES
Crea ng Users: -
You can create new users using the CREATE USER command. Let’s
create a user named Abhishek, Rahul & Amar and assign a
passwords to them:
Command:
CREATE USER 'Abhishek'@'localhost' IDENTIFIED BY 'Abhishek';
CREATE USER 'Rahul'@'localhost' IDENTIFIED BY 'Rahul';
CREATE USER 'Amar'@'localhost' IDENTIFIED BY 'Amar';
Step 3: Verify
Check Privileges a er remove privileges.
Command: SHOW GRANTS FOR 'Amar'@'localhost';
Once logged in, you can only access the databases and tables
for which Abhishek has privileges.
Delete user:-
Step 1: Delete the User
To delete the user account completely, use the following
command.
Command: DROP USER 'Amar'@'localhost';