|
Installation
How to install the scripts.
Phase-Deploy 1. IntroductionHow to install the scripts and create MySQL instances. Make sure you have read ArchitectureOverview before. 2. Details2.1. Installing scriptsExecute everything as user root.
adduser mysql passwd -l mysql chown a+x action_handler.scr chown a+x init_mysql_db.sh chown a+x mysql_handler.sh sample_instance=( DATADIR="/instance/sample_instance/data" CONFFILE="/instance/sample_instance/config/my.cnf" BINDADDR="10.0.1.2" SOFTWARE="/u02/app/mysql/product/5.5.17/advanced" LOGDIR="/instance/sample_instance/logs" ) mkdir -p /u02/app/mysql/product/5.5.17 cd /u02/app/mysql/product/5.5.17 tar xzf mysql-advanced-5.5.17-linux2.6-x86_64.tar.gz mv mysql-advanced-5.5.17-linux2.6-x86_64 advanced touch /root/.my.cnf chmod 600 /root/.my.cnf vi /root/.my.cnf [client] user=root password="sOmepassw!ord" [mysqldump] user=root password="sOmepassw!ord" |