Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

when i importing dump i got this error:bash: mysql: command not found

my pipeline:

image: node:10.15.0 pipelines: default: - step: services: - mysql script: - npm install - bash / &amp; - sleep 20 - mysql -u root p3-main< test/p3-main-test.sql - node test_pipe.js




              image: mysql:5.6


               MYSQL_DATABASE: 'mainCapture.PNG'

               MYSQL_USER: 'yyyyy'

              MYSQL_RANDOM_ROOT_PASSWORD: 'no'


1 answer

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 -u root -proot -e "CREATE USER IF NOT EXISTS 'Fisdom_1234@localhost' IDENTIFIED BY 'Fisdom_1234';"

Works like a charm, thank you!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,247 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you