Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
4,551,671
Community Members
 
Community Events
184
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 /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

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';"

Works like a charm, thank you!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events