Support run rubbos test mult times
[bottlenecks.git] / rubbos / rubbos_scripts / 1-1-1 / scripts / MYSQL1_configure.sh
1 #!/bin/bash
2
3 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
4 source set_bottlenecks_rubbos_env.sh
5
6 echo "CONFIGURING MYSQL on $HOSTNAME"
7
8 cd $MYSQL_HOME
9 chown -R mysql:mysql ./
10 cp support-files/my-medium.cnf /etc/my.cnf
11 #bin/mysqld_safe --user=$BOTTLENECKS_USER &
12 #bin/mysqladmin -u root password 'new-password'
13 cp support-files/mysql.server /etc/init.d/mysql.server
14 /etc/init.d/mysql.server status
15
16 if [ -f "/usr/local/bin/mysql" ]; then
17 rm -rf /usr/local/bin/mysql
18 fi
19
20 ln -s $MYSQL_HOME/bin/mysql /usr/local/bin/mysql
21
22 echo "DONE CONFIGURING MYSQL on $HOSTNAME"
23