Merge "Change PTL informatin in INFO"
[bottlenecks.git] / testsuites / rubbos / rubbos_scripts / 1-1-1 / scripts / MYSQL1_configure.sh
1 #!/bin/bash
2 ##############################################################################
3 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
4 #
5 # All rights reserved. This program and the accompanying materials
6 # are made available under the terms of the Apache License, Version 2.0
7 # which accompanies this distribution, and is available at
8 # http://www.apache.org/licenses/LICENSE-2.0
9 ##############################################################################
10
11 cd /bottlenecks/rubbos/rubbos_scripts/1-1-1
12 source set_bottlenecks_rubbos_env.sh
13
14 echo "CONFIGURING MYSQL on $HOSTNAME"
15
16 cd $MYSQL_HOME
17 chown -R mysql:mysql ./
18 cp support-files/my-medium.cnf /etc/my.cnf
19 #bin/mysqld_safe --user=$BOTTLENECKS_USER &
20 #bin/mysqladmin -u root password 'new-password'
21 cp support-files/mysql.server /etc/init.d/mysql.server
22 /etc/init.d/mysql.server status
23
24 if [ -f "/usr/local/bin/mysql" ]; then
25 rm -rf /usr/local/bin/mysql
26 fi
27
28 ln -s $MYSQL_HOME/bin/mysql /usr/local/bin/mysql
29
30 echo "DONE CONFIGURING MYSQL on $HOSTNAME"
31