Skip to content

Commit

Permalink
Merge pull request #168 from mediamicroservices/db-name
Browse files Browse the repository at this point in the history
Db name
  • Loading branch information
privatezero authored Jun 12, 2017
2 parents f7d7add + 30b55dc commit cf707e5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Resources/dbinfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
The mediamicroservices database supports the storing and querying of a variety of information created by both [mediamicroservices](https://github.com/mediamicroservices/mm) and [LTOpers](https://github.com/amiaopensource/ltopers). This document provides database setup information, a breakdown of the structure of the database and examples of the scripts currently used to interact with it.

## Database specific scripts
* createpremisdb
* createmmdb
* dbbackup
* makefingerprint
* searchfingerprint
* updatingplist

## Database Configuration

To configure the database, run the command `createpremisdb -c` on your __host__ computer and follow the prompts. This will set up the database as well as facilitate user creation. To create users without creating a new database, use the command `createpremisdb -u`. At the end of user creation, the script will supply a command to create a log-in profile for the database. It should look something like this: `mysql_config_editor set --login-path=your_user_config --host=xx.xx.xxx.xxx --user=your_user --password`. Run this command on your __user__ computer and enter the password for the user you created when prompted. This will create the SQL log-in profile that you will use when configuring the microservices. NOTE: When supplying the suggested command, the script does its best to auto-fill the host IP address. You may wish to verify that this is the correct IP.
To configure the database, run the command `createmmdb -c` on your __host__ computer and follow the prompts. This will set up the database as well as facilitate user creation. To create users without creating a new database, use the command `createmmdb -u`. At the end of user creation, the script will supply a command to create a log-in profile for the database. It should look something like this: `mysql_config_editor set --login-path=your_user_config --host=xx.xx.xxx.xxx --user=your_user --password`. Run this command on your __user__ computer and enter the password for the user you created when prompted. This will create the SQL log-in profile that you will use when configuring the microservices. NOTE: When supplying the suggested command, the script does its best to auto-fill the host IP address. You may wish to verify that this is the correct IP.

To finalize the database setup, run `mmconfig` (GUI mode) or `mmconfig -t` (CLI) and select 'Y' in the PREMIS Database logging section, (or set to Y if using CLI). Enter the database name and log-in profile you have created to finalize DB connectivity. Additional database options (such as fingerprint generation) can be set at this time.

Expand Down Expand Up @@ -98,6 +98,6 @@ Generates fingerprints (perceptual hashes) from whole or specified portion of an
Usage: searchfingerprint [ -h ] (help) [ -i ] (set in time) [ -o ] (set out time) [ -t ] (text only-don't display video preview) [Input]

## Database Support Scripts
#### createpremisdb
#### createmmdb
#### dbbackup
#### updatingplist
File renamed without changes.
6 changes: 3 additions & 3 deletions mmconfig
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ VOLADJUST.default = ${VOLADJUST}
PREMIS_DB.x = 600
PREMIS_DB.y = 20
PREMIS_DB.type = radiobutton
PREMIS_DB.label = Please choose Y or N to enable logging of PREMIS events into database:
PREMIS_DB.label = Please choose Y or N to enable database logging:
PREMIS_DB.option = Y
PREMIS_DB.option = N
PREMIS_DB.width = 125
Expand All @@ -255,7 +255,7 @@ PREMIS_DB.default = ${PREMIS_DB}
PREMIS_PROFILE.x = 650
PREMIS_PROFILE.y = 10
PREMIS_PROFILE.type = textfield
PREMIS_PROFILE.label = Enter name of PREMIS event database profile:
PREMIS_PROFILE.label = Enter name of database profile:
PREMIS_PROFILE.option = Y
PREMIS_PROFILE.option = N
PREMIS_PROFILE.width = 125
Expand All @@ -265,7 +265,7 @@ PREMIS_PROFILE.default = ${PREMIS_PROFILE}
PREMIS_NAME.x = 920
PREMIS_NAME.y = 10
PREMIS_NAME.type = textfield
PREMIS_NAME.label = Enter name of PREMIS event database:
PREMIS_NAME.label = Enter name of database:
PREMIS_NAME.option = Y
PREMIS_NAME.option = N
PREMIS_NAME.width = 125
Expand Down

0 comments on commit cf707e5

Please sign in to comment.