LoginSignup
3
1

More than 3 years have passed since last update.

【CircleCI】MySQLで複数DBを構築する

Last updated at Posted at 2020-04-25

環境

設定例

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

リンク

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1