summaryrefslogtreecommitdiffstats
path: root/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh
diff options
context:
space:
mode:
authorpanghao <shamrock.pang@huawei.com>2015-12-17 03:16:48 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-12-17 03:16:48 +0000
commit833d16b53e59967db779b0eba37d4f7481cb94e9 (patch)
tree7b82e4eeaf6f5b704a1b949b3ad77a9ecde491a5 /rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh
parente3d9ae4123b420f8fa06a794062f67045dbac2b0 (diff)
parent9e1fe50a5af8a5eb549a03014329a206bfbf2650 (diff)
Merge "fix bugs of installing mysql"
Diffstat (limited to 'rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh')
-rwxr-xr-xrubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh b/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh
index 01a718d9..7b3707da 100755
--- a/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh
+++ b/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh
@@ -22,7 +22,7 @@ fi
ln -s $MYSQL_HOME/bin/mysql /usr/local/bin/mysql
sleep 20
-
+echo "BEGIN MYSQL GIVE PRIVILEGES"
cat << EOF | mysql -uroot
CREATE DATABASE rubbos;
@@ -34,9 +34,14 @@ GRANT ALL PRIVILEGES ON rubbos.* TO 'rubbos'@'localhost' \
IDENTIFIED BY 'rubbos';
flush privileges;
EOF
+echo "END MYSQL GIVE PRIVILEGES"
-tar xzf /tmp/$RUBBOS_DATA_TARBALL
-mysql -uroot rubbos < $RUBBOS_DATA_SQL
-rm $RUBBOS_DATA_SQL
+echo "BEGIN IMPORT SQL DATA"
+echo "software_home=$SOFTWARE_HOME"
+tar xzf $SOFTWARE_HOME/$RUBBOS_DATA_TARBALL --directory /tmp
+mysql -uroot rubbos < /tmp/$RUBBOS_DATA_SQL
+echo "END IMPORT SQL DATA"
+rm /tmp/$RUBBOS_DATA_SQL
echo "DONE CONFIGURING MYSQL on $HOSTNAME"
+