diff options
author | Jorge Hernandez <jh1730@att.com> | 2018-05-09 21:58:52 -0500 |
---|---|---|
committer | Jorge Hernandez <jh1730@att.com> | 2018-05-09 21:58:52 -0500 |
commit | 1f5df43ca68425b0d33aac1ecc6c74d7cc5c6bbb (patch) | |
tree | fec0c7f630e9659f10dc114f428a41222637b2df /config/db | |
parent | 596da3ccd3bbcc78c61801dda3ca460117a1bbdb (diff) |
allow non-root user to access migration database
Change-Id: I890daecb9b24bbc21c989f4e3c5fe9c4d1aa2005
Issue-ID: POLICY-788
Signed-off-by: Jorge Hernandez <jh1730@att.com>
Diffstat (limited to 'config/db')
-rw-r--r-- | config/db/db.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/db/db.sh b/config/db/db.sh index 4b183730..bafce053 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 +for db in support onap_sdk log migration 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}'@'%' ;" |