環境
- Circle CI 2.1
- circleci/mysql:5.7
設定例
version: 2.1
executors:
docker:
- image: circleci/node:14.15.4-buster
- image: circleci/mysql:5.7
environment:
MYSQL_ALLOW_EMPTY_PASSWORD: 'yes'
MYSQL_DATABASE: first_database_comes_here
:
:
commands:
set_up_multiple_databases:
steps:
- run:
name: Set up multiple databases
command: |
sudo apt-get update
sudo apt-get install default-mysql-client
mysql -u root -e "CREATE DATABASE IF NOT EXISTS second_database_comes_here" --protocol=tcp
参考URL