Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Dheeraj Kumar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2019

my pipeline:

image: node:10.15.0 pipelines: default: - step: services: - mysql script: - npm install - bash /run.sh &amp; - 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: 'mainCapture.PNG '

               MYSQL_USER: 'yyyyy'

              MYSQL_RANDOM_ROOT_PASSWORD: 'no'

 

1 answer

2 votes
pramod
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 6, 2021

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';"
Eduar Bastidas March 9, 2022

Works like a charm, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, compass, developer experience, devex, platform engineering, internal developer platform, component catalog, atlassian learning, productivity tools, developer productivity, software architecture, compass webinar, engineering teams

Discover how Compass drives DevEx and productivity at Atlassian 🏃🏻‍♂️

Learn why Compass was built to tackle dev experience at scale. See how Atlassian uses it to boost visibility, reduce cognitive load, and drive consistency—plus tips to get started and customize your IDP for stronger team engagement.

Join the webinar ✨
AUG Leaders

Atlassian Community Events