Professional Documents
Culture Documents
NPM : 192350150
Kelas : II – 3 Pagi
C:\Users\HP>cd\
C:\>cd\xampp\mysql\bin
C:\xampp\mysql\bin>mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 12
Server version: 10.4.19-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
C:\xampp\mysql\bin>mysql -u operator
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 15
Server version: 10.4.19-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
C:\xampp\mysql\bin>mysql -u admin
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 16
Server version: 10.4.19-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
C:\xampp\mysql\bin>mysql -u root
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 17
Server version: 10.4.19-MariaDB mariadb.org binary distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input
statement.
• Set hak akses Insert, Delete, Edit(Create) pada akses user operator
di tbl_siswa
MariaDB [db_siswa]> grant insert,delete,create on tbl_siswa to
'operator'@'localhost';
Query OK, 0 rows affected (0.021 sec)
+-------------------------------------------------------------------------
-----------------+
| Grants for operator@localhost
|
+-------------------------------------------------------------------------
-----------------+
• Set hak akses Semua Operasi pada akses user Admin di tbl_siswa dan
tbl_operator
+-------------------------------------------------------------------------
-+
| Grants for admin@localhost
|
+-------------------------------------------------------------------------
-+
| GRANT USAGE ON *.* TO `admin`@`localhost`
|
| GRANT ALL PRIVILEGES ON `db_siswa`.`tbl_siswa` TO `admin`@`localhost`
|
| GRANT ALL PRIVILEGES ON `db_siswa`.`tbl_operator` TO `admin`@`localhost`
|
+-------------------------------------------------------------------------
-+
3 rows in set (0.010 sec)