3

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)?

1 Answer 1

7

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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