diff options
author | 2016-01-09 09:31:41 +0000 | |
---|---|---|
committer | 2016-01-09 09:41:40 +0000 | |
commit | 7be8a9f58376fb3ef0b2f5ecde03edca0e80035a (patch) | |
tree | e80c5283c5da48c37dcc347ad65b5506947f9e96 /rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh | |
parent | f1c3025829798753e4e57b2c6178f1f72957556a (diff) |
Support run rubbos test mult times
Update Mysql configuration to support run test mult times
JIRA: BOTTLENECK-24
Change-Id: I29f2b17be03b095e1af569a53bbbecf4f78ab005
Signed-off-by: QiLiang <liangqi1@huawei.com>
Diffstat (limited to 'rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh')
-rwxr-xr-x | rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh | 24 |
1 files changed, 0 insertions, 24 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 7b3707da..3b8759d3 100755 --- a/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh +++ b/rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh @@ -9,8 +9,6 @@ cd $MYSQL_HOME chown -R mysql:mysql ./ cp support-files/my-medium.cnf /etc/my.cnf #bin/mysqld_safe --user=$BOTTLENECKS_USER & -bin/mysqld_safe& -sleep 10 #bin/mysqladmin -u root password 'new-password' cp support-files/mysql.server /etc/init.d/mysql.server /etc/init.d/mysql.server status @@ -21,27 +19,5 @@ 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; - -GRANT ALL PRIVILEGES ON rubbos.* TO 'rubbos'@'%' \ - IDENTIFIED BY 'rubbos'; - flush privileges; -GRANT ALL PRIVILEGES ON rubbos.* TO 'rubbos'@'localhost' \ - IDENTIFIED BY 'rubbos'; - flush privileges; -EOF -echo "END MYSQL GIVE PRIVILEGES" - -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" |