Sie sind hier: startseite > gymnasium > faecher > informatik > aktuellekurse > penon
>
SQL-Skript zum Erzeugen der Zugriffsrechte der Datenbank Mandantenverwaltung
# Name : rechte_mandantenverwaltung.sql
#
# Funktion : Setzt die Zugangsberechtigungen fuer die Mandantenverwaltung.
# Vgl. http://www.oszhdl.be.schule.de/gymnasium/faecher/informatik/
#
# Datenbank : MySql 4.0.x
#
# Autoren : Johann Penon (OSZ Handel I)
#
# erstellt am : 26. November 2007
use mandantenverwaltung;
# Globale Rechte
#---------------
# Erst alle Rechte vergeben, um Fehlermeldungen bzw. Warnungen zu vermeiden
GRANT ALL ON *.* TO ''@localhost;
# Alle Rechte für die Allgemeinheit entfernen
REVOKE ALL ON *.* FROM ''@localhost;
# Allen Bereichen Zugang zum Datenbanksystem MySql geben
GRANT USAGE on *.* to anwalt@localhost IDENTIFIED BY 'anwalt_m';
GRANT USAGE on *.* to reno@localhost IDENTIFIED BY 'reno_m';
GRANT USAGE on *.* to sekr@localhost IDENTIFIED BY 'sekr_m';
GRANT USAGE on *.* to vorst@localhost IDENTIFIED BY 'vorst_m';
# Datenbankzugriff mandantenverwaltung
#-------------------------------------
# Allen Benutzern Zugang zur Datenbank mandantenverwaltung geben
GRANT USAGE on mandantenverwaltung.* to anwalt@localhost;
GRANT USAGE on mandantenverwaltung.* to reno@localhost;
GRANT USAGE on mandantenverwaltung.* to sekr@localhost;
GRANT USAGE on mandantenverwaltung.* to vorst@localhost;
# Zugriff auf Tabellen
#---------------------
# mandanten
GRANT SELECT ON mandantenverwaltung.mandanten TO anwalt@localhost, reno@localhost, sekr@localhost, vorst@localhost;
GRANT INSERT ON mandantenverwaltung.mandanten TO reno@localhost, vorst@localhost;
GRANT UPDATE ON mandantenverwaltung.mandanten TO reno@localhost, vorst@localhost;
# faelle
GRANT SELECT ON mandantenverwaltung.faelle TO anwalt@localhost, reno@localhost, sekr@localhost, vorst@localhost;
GRANT INSERT ON mandantenverwaltung.faelle TO reno@localhost, vorst@localhost;
GRANT UPDATE ON mandantenverwaltung.faelle TO reno@localhost, vorst@localhost;;
# termine
GRANT SELECT ON mandantenverwaltung.termine TO anwalt@localhost, reno@localhost, sekr@localhost, vorst@localhost;
GRANT INSERT ON mandantenverwaltung.termine TO anwalt@localhost, reno@localhost, vorst@localhost;
GRANT UPDATE ON mandantenverwaltung.termine TO anwalt@localhost, reno@localhost, vorst@localhost;
zum Seitenanfang springen
zum Seitenanfang springen