Skip to content

Deployment

Dmitry Romanov edited this page Apr 26, 2018 · 9 revisions

0. Clone RCDB repo

Here is a very brief instruction for it (for bash shell):

git clone https://github.com/JeffersonLab/rcdb.git
cd rcdb
source environment.bash

# now to check that everything works, test connect to HallD RCDB
export RCDB_CONNECTION=mysql://[email protected]/rcdb
rcnd

rcnd should answer something like:

Runs total: 10462
Last run  : 42387
Condition types total: 53
Conditions: 
<list of conditions>

More information is in Installation chapter

1. Create MySQL database

```bash
mysql -u root -p
```

```mysql
CREATE SCHEMA rcdb;
CREATE USER 'rcdb'@'localhost';
GRANT ALL PRIVILEGES ON rcdb.* TO 'rcdb'@'localhost';
 ```

2. Create DB structure

And fill in a minimal set of common conditions.

$RCDB_HOME/python/