It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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
TAGS
Community showcase
Published in Jira Align

Best Practices in Jira Align

Hello Jira Align customers! In order to better serve you on your journey with Jira Align, the Community team has worked with the Jira Align team to curate the content in this collection to better s...

68 views 0 2
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you