added orai
This commit is contained in:
parent
c66953c001
commit
3ad0021312
|
@ -5,3 +5,54 @@ use autoberles;
|
||||||
SELECT user FROM mysql.user;
|
SELECT user FROM mysql.user;
|
||||||
|
|
||||||
GRANT UPDATE ON berlok TO titkar;
|
GRANT UPDATE ON berlok TO titkar;
|
||||||
|
|
||||||
|
GRANT SELECT(id) ON berlok TO titkar WITH GRANT OPTION;
|
||||||
|
|
||||||
|
/*ADATBÁZIS TÁBLÁINAK HELYREÁLLÍTÁSA*/
|
||||||
|
/*Ha crashelne, akkor a következővel resolveolhatjuk ...*/
|
||||||
|
/*a mysql.columns_priv a tábla neve, értelemszerűen helyettesíthető arra a táblára amivel gond van*/
|
||||||
|
CHECK table mysql.columns_priv;
|
||||||
|
/*Ha corrupted akkorr ..*/
|
||||||
|
REPAIR TABLE mysql.columns_priv;
|
||||||
|
FLUSH PRIVILEGES;
|
||||||
|
GRANT SELECT(id) ON berlok TO titkar WITH GRANT OPTION;
|
||||||
|
/*A parancs újboli kiadásával működnie kell*/
|
||||||
|
|
||||||
|
/*bejelentkezés titkárral*/
|
||||||
|
exit
|
||||||
|
mysql.exe -u titkar
|
||||||
|
|
||||||
|
UPDATE berlok SET nev = "Gipsz Istvan" WHERE nev LIKE "Gipsz Jakab";
|
||||||
|
|
||||||
|
/*root*/
|
||||||
|
GRANT UPDATE(nev) on berlok TO titkar;
|
||||||
|
GRANT SELECT(nev) on berlok TO titkar;
|
||||||
|
SHOW GRANTS FOR titkar;
|
||||||
|
|
||||||
|
REVOKE SELECT(id) ON berlok FROM titkar;
|
||||||
|
|
||||||
|
DROP USER titkar;
|
||||||
|
|
||||||
|
/*SHOW PRIVILEGES for all users*/
|
||||||
|
SELECT * FROM information_schema.user_privileges;
|
||||||
|
|
||||||
|
/*felhasználók létrehozása*/
|
||||||
|
|
||||||
|
CREATE USER IF NOT EXISTS sanyi;
|
||||||
|
GRANT SELECT(tipus, evjarat) ON autok TO sanyi;
|
||||||
|
|
||||||
|
CREATE USER IF NOT EXISTS sysadmin;
|
||||||
|
GRANT ALL PRIVILEGES ON autok TO sysadmin;
|
||||||
|
GRANT ALL PRIVILEGES ON berlok TO sysadmin;
|
||||||
|
GRANT ALL PRIVILEGES ON kolcsonzes TO sysadmin;
|
||||||
|
|
||||||
|
CREATE USER IF NOT EXISTS jutka;
|
||||||
|
GRANT SELECT(telefonszam) ON berlok to jutka;
|
||||||
|
|
||||||
|
/*mosós fijú*/
|
||||||
|
CREATE USER IF NOT EXISTS gipszkarton_emil;
|
||||||
|
GRANT SELECT(napokszama) ON kolcsonzes TO gipszkarton_emil;
|
||||||
|
|
||||||
|
/*kölcsönzésekért felel*/
|
||||||
|
CREATE USER IF NOT EXISTS beka_kalman;
|
||||||
|
GRANT ALL PRIVILEGES ON kolcsonzes TO beka_kalman;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user