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:theorie:01 [2024/10/22 12:49] – vdemir | modul:m290:learningunits:lu06:theorie:01 [2024/11/16 09:00] (aktuell) – kdemirci | ||
|---|---|---|---|
| Zeile 23: | Zeile 23: | ||
| To create a new user in MySQL, you use the CREATE USER statement: | To create a new user in MySQL, you use the CREATE USER statement: | ||
| - | CREATE USER ' | + | CREATE USER ' |
| | | ||
| This creates a user username that can only connect from localhost (the MySQL server machine). | This creates a user username that can only connect from localhost (the MySQL server machine). | ||
| Zeile 65: | Zeile 65: | ||
| This removes both the user and their associated privileges. | This removes both the user and their associated privileges. | ||
| + | ==== 6. Activating Change of Privileges After Altering Them ==== | ||
| + | To activate changes to privileges in MySQL after modifying them, you can use the following command: | ||
| + | |||
| + | FLUSH PRIVILEGES; | ||
| + | |||
| + | This command forces MySQL to reload the privilege tables, applying any recent changes made to user privileges. Normally, after using GRANT, REVOKE, or ALTER USER, MySQL applies changes automatically, | ||
| + | |||
| + | <color # | ||
| + | |||
| + | | ||
| ===== Video-Tutorials ==== | ===== Video-Tutorials ==== | ||