Elastic image configuration - Install mysql

Hi all,

I go to Bamboo admin/ Image Configuration --> Edit (on Default Image EBS x86_64 linux)

--> Instance startup script


And my question is:

1. How to install mysql to test, install have set password and create database default

2. Can i make script on task of bamboo "mysql -u root -p 123456 -h localhost" ?

Thanks

Thien Nguyen

2 answers

You can set a "script task" on your plan. Please take a look at https://confluence.atlassian.com/display/AOD/Script and check how you can do it.

yes, so how about for

1. How to install mysql to test, install have set password and create database default

When Instance startup script, I want install database and create database default

Ex:

yum install -y mysql-server

service mysqld start

/usr/bin/mysqladmin -u root password password create [database_name]

But i make that, the server can't start



I had made the "Instance startup script" for php and mysql as below:

------------------------------------

sudo yum install -y php-mcrypt

sudo yum install -y php-pdo

sudo yum install -y php-mysql

sudo yum install -y php-pecl-xdebug

sudo yum install -y php-mbstring

sudo yum install -y mysql-server

sudo /sbin/service mysqld start

/usr/bin/mysqladmin -u root password 'newpass' create laravel4

sudo /sbin/service mysqld start

sudo chkconfig mysqld on

sudo perl -pi -e 's/memory_limit = 128M/memory_limit = 256M/g' /etc/php.ini

---------------------------------------

I had change mysql password to newpass and created database laravel4

Thanks

Thien Nguyen

Suggest an answer

Log in or Sign up to answer
Community showcase

Scrum Roles Explained: the Do's and the Don'ts

Hello Community,  Today we are going to talk about the three Scrum Roles. There is the Development Team, the Scrum Master and the Product Owner. In my opinion these three are all really impo...

145 views 2 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you