You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
I am wondering if it is possible to spin up two different databases on the same mysql instance in bitbucket pipelines during testing
You could call the mysql client with the root password to create another database, like so:
image: php:7.2-fpm-alpine
pipelines:
default:
- step:
script:
- ...
- RUN apk add mysql-client
- mysql -u root -pyo -h 127.0.0.1 -e "CREATE DATABASE pipelines_secondary"
- ...
services:
- mysql
definitions:
services:
mysql:
image: mysql:5.7
environment:
MYSQL_DATABASE: 'pipelines'
MYSQL_ROOT_PASSWORD: 'yo'
MYSQL_USER: 'test_user'
MYSQL_PASSWORD: 'test_user_password'