Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathprovision.sql
More file actions
Latest commit
52 lines (36 loc) · 2.01 KB
/
Copy pathprovision.sql
File metadata and controls
52 lines (36 loc) · 2.01 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
CREATEDATABASEIF NOT EXISTS credentials;
GRANT ALL ON credentials.* TO 'credentials001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS discovery;
GRANT ALL ON discovery.* TO 'discov001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS ecommerce;
GRANT ALL ON ecommerce.* TO 'ecomm001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS enterprise_access;
GRANT ALL ON enterprise_access.* TO 'enterprise_access001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS notes;
GRANT ALL ON notes.* TO 'notes001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS registrar;
GRANT ALL ON registrar.* TO 'registrar001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS xqueue;
GRANT ALL ON xqueue.* TO 'xqueue001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS edxapp;
CREATEDATABASEIF NOT EXISTS edxapp_csmh;
GRANT ALL ON edxapp.* TO 'edxapp001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON edxapp_csmh.* TO 'edxapp001'@'%';
CREATEDATABASEIF NOT EXISTS `dashboard`;
GRANT ALL ON`dashboard`.* TO 'analytics001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS `analytics-api`;
GRANT ALL ON`analytics-api`.* TO 'analytics001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS `reports`;
GRANT ALL ON`reports`.* TO 'analytics001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS `reports_v1`;
GRANT ALL ON`reports_v1`.* TO 'analytics001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS enterprise_subsidy;
CREATEUSERIF NOT EXISTS 'subsidy001'@'%' IDENTIFIED BY 'password';
GRANT ALL ON enterprise_subsidy.* TO 'subsidy001'@'%';
CREATEDATABASEIF NOT EXISTS `enterprise_catalog`;
GRANT ALL ON`enterprise_catalog`.* TO 'catalog001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS designer;
GRANT ALL ON discovery.* TO 'designer001'@'%' IDENTIFIED BY 'password';
CREATEDATABASEIF NOT EXISTS license_manager;
GRANT ALL ON license_manager.* TO 'license_manager001'@'%' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;