Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

162
Views
MySQL output being supressed in pipeline

I am using a Github Actions pipeline and starting a mysql server using docker within that pipeline. I am attemtping to run a show tables command, however the output is being suppressed.

enter image description here

In the below pipeline i have a docker-compose file which runs a mysql server. Then i am attempting to connect to it and output the tables. However i never receive the output.

pipeline.yml

name: test-pipeline

on: [ push ]

jobs:
  test:
    name: Test Migration
    runs-on: self-hosted
    steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v1
      with:
        node-version: '12'
    - name: Setup
      run: |
        docker-compose -f CI/docker-compose.yml up -d
        npm install
    - name: Check tables
      run: |
        mysql --host=127.0.0.1 --protocol=tcp --user=root --password=password testDB -e "show tables;"
        echo "here"
over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

If anyone else comes across this problem i fixed it by not specifying the db upfront in the options, instead specifying the database in the -e command.

mysql --host=127.0.0.1 --protocol=tcp --user=root --password=password -e "show databases; use testDB; show tables;"
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!