MySQL/Maria Database
%Change password of existing userSET PASSWORD FOR 'bob'@'%.loc.gov' = PASSWORD('newpass');
%create user
CREATE USER foo2@test IDENTIFIED BY 'password';
CREATE OR REPLACE USER foo2@test IDENTIFIED BY 'password';
CREATE USER IF NOT EXISTS foo2@test IDENTIFIED BY 'password';
%remove user
DROP USER bob;
%create user and then grant prevalence
CREATE USER 'dba'@'%' IDENTIFIED BY 'strongpassword';
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'%' ;
%show all the users and details
SELECT User FROM mysql.user;
SELECT host, user, password FROM mysql.user;
show grants for 'vivek'@'%';
%show all databases
show databases;