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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

170 views 4 8
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