1

I imported a large database from remote using a cat + mysql command :

cat my_db.sql | mysql --host=external_host --user=my_user --password=some_password my_database

And after some time, it returned

[1]+  Stopped                 cat my_db.sql | mysql --host=external_host --user=my_user --password=some_password my_database

What does that mean ? I did the same command with a smaller file and I got a [1]+ Done, so clearly, the first try didn't succeed completly, but I don't know what went wrong neither what to do to make it work completely.

Is there a possible solution to that ?

Thanks for your help !

Cyril N.
  • 574
  • 1
  • 9
  • 33

1 Answers1

0

You have interrupted the command using Ctrl+Z.

You can bring it back to the foreground using the fg commnad.

This is part of the JOB CONTROL capabilities of the shell.

$ man bash

Ctrl+Z

[2]+  Stopped                 man bash

$ jobs
[1]-  Running                 sudo virt-viewer W7 2>&1 > /dev/null &
[2]+  Stopped                 man bash

$ fg %2
dawud
  • 14,918
  • 3
  • 41
  • 61