•MariaDB [(none)]> grant all privileges on *.* to ’user’@’%’    Â
-> identified by ’kata_sandi’ with grant option;    Â
•MariaDB [(none)]> grant reload,process on *.* TO ’admin’@’localhost’;    Â
•MariaDB [(none)]> grant usage on *.* to ’dummy’@’localhost’;    Â
Cara lain: Â Â Â Â
•$ mysql –user=root mysql    Â
•MariaDB [(none)]> insert into user    Â
-> values(’localhost’,’monty’,password(’kata_sandi’),    Â
-> ’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);    Â
•MariaDB [(none)]> insert into user    Â
-> values(’ -> ’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’);    Â
•MariaDB [(none)]> insert into user set host=’localhost’, user=’admin’,    Â