my pipeline:
image: node:10.15.0 pipelines: default: - step: services: - mysql script: - npm install - bash /run.sh & - sleep 20 - mysql -u root p3-main< test/p3-main-test.sql - node test_pipe.js
definitions:
services:
mysql:
image: mysql:5.6
variables:
MYSQL_DATABASE: 'main'
MYSQL_USER: 'yyyyy'
MYSQL_RANDOM_ROOT_PASSWORD: 'no'
By using services only MySQL server will be available, but to access the server you need a MySQL client, through which it can identify all your MySQL commands
It worked for me by installing it in the script section -
- apt-get update
- apt-get install -y mariadb-client
- mysql -h 127.0.0.1 -u root -proot -e "CREATE USER IF NOT EXISTS 'Fisdom_1234@localhost' IDENTIFIED BY 'Fisdom_1234';"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.