diff options
author | Priyadharshini <priyadharshini.b96@wipro.com> | 2020-03-16 05:55:43 +0000 |
---|---|---|
committer | Priyadharshini <priyadharshini.b96@wipro.com> | 2020-03-23 09:11:55 +0530 |
commit | cfb63b2c5c381434a6fdea794ad0c2e89a2be328 (patch) | |
tree | 586b997a0634198bf0b0ded5dbbde51ff7311b27 /ransim/docker/config/db | |
parent | 44d8e15bda321936078b99f8222175a8ab016bc6 (diff) |
Initial code check-in RANSim Controller and RANSim GUI
Issue-ID: INT-1485
Signed-off-by: Priyadharshini <priyadharshini.b96@wipro.com>
Change-Id: I99fe693065072ff5c9b188f2177488a4cd93237d
Diffstat (limited to 'ransim/docker/config/db')
-rw-r--r-- | ransim/docker/config/db/db.conf | 1 | ||||
-rw-r--r-- | ransim/docker/config/db/db.sh | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ransim/docker/config/db/db.conf b/ransim/docker/config/db/db.conf new file mode 100644 index 0000000..ec5ebd2 --- /dev/null +++ b/ransim/docker/config/db/db.conf @@ -0,0 +1 @@ +MYSQL_ROOT_PASSWORD=secret diff --git a/ransim/docker/config/db/db.sh b/ransim/docker/config/db/db.sh new file mode 100644 index 0000000..4f988be --- /dev/null +++ b/ransim/docker/config/db/db.sh @@ -0,0 +1,9 @@ +#!/bin/bash -xv + +for db in support ransim_db +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}'@'%' ;" +done + +mysql -uroot -p"${MYSQL_ROOT_PASSWORD}" --execute "FLUSH PRIVILEGES;" |