-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathusers.sql
38 lines (22 loc) · 810 Bytes
/
users.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
start transaction;
create user 'admin'@'%'
identified by 'adminhaslo';
create user 'lekarz'@'%'
identified by 'lekarzhaslo'
password expire interval 180 day;
create user 'pielegniarka'@'%'
identified by 'pielegniarkahaslo'
password expire interval 180 day;
create user 'pacjent'@'%'
identified by 'pacjenthaslo'
password expire interval 30 day;
create user 'osobaupowazniona'@'%'
identified by 'osobaupowaznionahaslo'
password expire interval 30 day;
grant all privileges on *.* to 'admin'@'%';
grant select, insert, update, execute on *.* to 'lekarz'@'%';
grant select, insert, update, execute on *.* to 'pielegniarka'@'%';
grant select, execute on *.* to 'pacjent'@'%';
grant select, execute on *.* to 'osobaupowazniona'@'%';
flush privileges;
commit;