-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathcreateWorkflowSchedulerDB.txt
More file actions
42 lines (33 loc) · 1.54 KB
/
createWorkflowSchedulerDB.txt
File metadata and controls
42 lines (33 loc) · 1.54 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
Instructions on initially creating the workflow scheduler database.
Update postgres configuration
Edit:
/etc/postgresql/<postgres_version>/main/pg_hba.conf
Add the following Line:
host workflowscheduler workflowscheduler 127.0.0.1 255.255.255.255 password
Create database:
type: createdb workflowscheduler
Create workflowscheduler user
Log in to postgreSQL by typing:
psql workflowscheduler
At the psql prompt, create the workflowscheduler user by typing:
CREATE USER workflowscheduler WITH UNENCRYPTED PASSWORD 'your_password';
where 'your_password' is whatever password you would like for the workflowscheduler user.
Exit PostgreSQL by typing:
\q
Restart the PostgreSQL database to bring in changes:
/etc/init.d/postgresql-8.3 restart
Test setup
Log out of the postgres user account by typing:
logout
Test the installation and workflowscheduler account by typing:
psql -U workflowscheduler -W -h localhost workflowscheduler
Create tables:
Open the table creation script at:
<metacat>/src/scripts/workflowscheduler-db-scripts/ws-tables-postgres.sql
Copy each sql command and run in psql prompt.
Or at the psql prompt, type "\i <metacat>/src/scripts/workflowscheduler-db-scripts/ws-tables-postgres.sql"
Populate tables
Open the table creation script at:
<metacat>/src/scripts/workflowscheduler-db-scripts/ws-loaddtdschema-postgres.sql
Copy each sql command and run in psql prompt.
Or at the psql prompt, type "\i <metacat>/src/scripts/workflowscheduler-db-scripts/ws-loaddtdschema-postgres.sql"