Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
modul:m290:learningunits:lu06:loesungen:l01 [2024/10/22 13:40] – angelegt vdemir | modul:m290:learningunits:lu06:loesungen:l01 [2024/10/29 12:35] (aktuell) – vdemir | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== LU09.S01 - SQL- DCL: CREATE User - Under construction | + | ====== LU09.S01 - SQL- DCL: Preparatory Work ====== |
- | ===== Case studies / Assignments ===== | + | After applying tasks 1.1 - 1.5, the database including the table filled with the 10 rows of sample data should be available, as displayed in the following image. |
- | ==== Task A ==== | + | {{:modul: |
- | **Create the User**: Create a user named // | + | |
- | CREATE USER ' | ||
- | |||
- | ==== Task B ==== | ||
- | **Grant Privileges Without Table Management**: | ||
- | |||
- | GRANT SELECT, INSERT, UPDATE, DELETE ON myAppDB.* TO ' | ||
- | |||
- | |||
- | ==== Task C ==== | ||
- | **Rovoke Privileges**: | ||
- | |||
- | REVOKE CREATE, ALTER, DROP ON myAppDB.* FROM ' | ||
- | |||
- | ==== Tasc D ==== | ||
- | **View the User’s Privileges**: | ||
- | |||
- | SHOW GRANTS FOR ' | ||
- | |||
- | ==== Task E ==== | ||
- | **Test the User’s Access**: Connect as // | ||
- | |||
- | - Go to Webstorm and try to connect to the database | ||
- | - Then display the systemdate from mysql (select is allowed) | ||
- | - Finally, try to create a table (it should fail, because this user has no privileges to create tables) | ||
- | - | ||
- | |||
- | ==== Task F ==== | ||
- | **Delete the User (optional)**: | ||
- | |||
- | ===== Solution ===== | ||
- | [[modul: | ||
===== Vocabulary ===== | ===== Vocabulary ===== | ||
^ English ^ German ^ | ^ English ^ German ^ | ||
- | | explicitely | + | | ...| ...| |
- | | assignment | Auftrag | | + | |
- | | to revoke | widerrufen, aufheben | | + | |
---- | ---- | ||
[[https:// | [[https:// |