Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 719 Bytes

8_solution.md

File metadata and controls

19 lines (14 loc) · 719 Bytes

Lab Solution

Here, we use GRANT to create the user, and set permissions in one line.

MariaDB [MovieCollection]> GRANT ALL ON MovieCollection.* TO 'moviedba'@'localhost'
 IDENTIFIED BY 'popcorn';
Query OK, 0 rows affected (0.00 sec)

This requires 2 commands, 1 to create and grant, and then an addional grant.

MariaDB [MovieCollection]> GRANT SELECT ON MovieCollection.* TO 'movieclerk'@'localhost'
 IDENTIFIED by 'popcorn';
Query OK, 0 rows affected (0.00 sec)

MariaDB [MovieCollection]> GRANT UPDATE,INSERT,DELETE ON MovieCollection.person TO
 'movieclerk'@'localhost';
Query OK, 0 rows affected (0.00 sec)

Lesson Complete

continue