# Author: Martti Vasar
# Date: 08/03/2012
#
# These commands are triggered, when configuring MySQL servers. If you want to add commands,
# just write them here, if you want to remove, you can delete the line or use # comment mark,
# the program will ignore comment lines
#
# There are two command types, one is running the command in the instance (R), the other is 
# copying files from local (from this) machine to remote machine (C). For running commands, use
# R as an indicator and for copying, use C as an indicatior. If using C, make sure you do 
# not use spaces in file names, first is where the file is located in the local file system
# and the second is where to copy the file in the remote system.
#
# It uses Secure Shell tools (scp and ssh)
# The PWD (current directory) is the directory, where the CloudController is started.
# Configuration files are located in configuration/.

# Description:
# my.cnf is copied to the server to allow modification and tuning on MySQL side. If the
# configuration file has been copied, it will start the service

R sudo chmod 777 /etc/mysql/my.cnf

# copy configuration file (use copy command)
C configuration/my.cnf /etc/mysql/my.cnf

# set the right correct, so we are able to start mysql service
R sudo chmod 500 /etc/mysql/my.cnf

# start APACHE server (run the command)
R sudo service mysql start

# feel free to remove or add new commands

