Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I started to backup 30GB table at wrong time and now I want to stop it because it is estimated to take 7.5hours.

I used following command and options: mysqldump -u db -p user table --hex-blob | gzip> 25Nov-table.sql.gz

My question is how to stop mysqldump now (leaving backup incomplete) without inflicting any damage to my database (though I think there will be no risk)?

share|improve this question

You should be able to stop mysqldump by pressing control-c... or if it's running in the background, by killing the mysqldump process.

The server will realize almost immediately that the client connection mysqldump was holding has gone away and will release any table locks (held by mysqldump, if any) automatically.

This should be a completely safe operation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.