From: Jorge Hernandez Date: Mon, 14 May 2018 03:54:59 +0000 (-0500) Subject: allow db non-root access to X-Git-Tag: v1.2.3~4 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F35%2F47335%2F1;p=policy%2Fdocker.git allow db non-root access to The databases to which the non-root policy user are granted access are: operationshistory10 (guard) and pooling (pooling feature). Change-Id: Id8653e872a7750fe9e037ad2872b5541241ef4e7 Issue-ID: POLICY-788 Signed-off-by: Jorge Hernandez --- diff --git a/config/db/db.sh b/config/db/db.sh index bafce053..3065b8db 100644 --- a/config/db/db.sh +++ b/config/db/db.sh @@ -13,7 +13,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -for db in support onap_sdk log migration +for db in support onap_sdk log migration operationshistory10 pooling do mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "CREATE DATABASE IF NOT EXISTS ${db};" mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "GRANT ALL PRIVILEGES ON \`${db}\`.* TO '${MYSQL_USER}'@'%' ;"