Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Elastic image configuration - Install mysql

Nguyen Thien September 24, 2013

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

0 votes
Nguyen Thien September 25, 2013

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

0 votes
Bruna Griebeler
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 25, 2013

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.

Nguyen Thien September 25, 2013

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



Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events