From acbeb20b51c12f5ea486640e0e2a4e2cb81712c3 Mon Sep 17 00:00:00 2001 From: QiLiang Date: Sat, 9 Jan 2016 09:31:41 +0000 Subject: 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 (cherry picked from commit 7be8a9f58376fb3ef0b2f5ecde03edca0e80035a) --- .../1-1-1/scripts/MYSQL1_configure.sh | 24 ---------------------- 1 file changed, 24 deletions(-) (limited to 'rubbos/rubbos_scripts/1-1-1/scripts/MYSQL1_configure.sh') 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" -- cgit 1.2.3-korg