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"

@kaykhan,

I noticed you are using a self-hosted runner to run the job.
Have you tried the same commands on the local machine which the self-hosted runner is installed on for the same project? Did the commands work?

In addition, I recommend that you can try using the service container to test MySQL in your workflow.
To view more details about service containers, you can reference to the official documentation below:
https://docs.github.com/en/actions/configuring-and-managing-workflows/about-service-containers