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 <jh1730@att.com>
# 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}'@'%' ;"