updated configuration to script database creation

This commit is contained in:
sido 2018-11-07 14:19:55 +00:00
parent 0488d50873
commit 4f81158ada
1 changed files with 9 additions and 1 deletions

View File

@ -61,7 +61,15 @@ mysql:
mysqlRootPassword: ParaD0xa
mysqlUser: opal
mysqlPassword: ?opal01!
mysqlDatabase: opal_ids
initializationFiles:
opal-ids.sql: |-
CREATE DATABASE IF NOT EXISTS opal_ids DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON opal_ids.* TO "opal"@"%" IDENTIFIED BY "?opal01!";
FLUSH PRIVILEGES;
opal-data.sql: |-
CREATE DATABASE IF NOT EXISTS opal_data DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci;
GRANT ALL PRIVILEGES ON opal_data.* TO "opal"@"%" IDENTIFIED BY "?opal01!";
FLUSH PRIVILEGES;
persistence:
enabled: false