0

This is probably pretty simple, but I can't find the answer in the docs. Anyway I need to programmatically create a backup of a mysql table. Typically I would just invoke a "mysqldump" from a batch file or shell script. In this specific project I cannot access any batch files or outside shell scripts. I can also not use System.Diagnostrics.Process classes to simulate running mysqldump from the command line.

This leaves me with accomplishing this task from within the MySQL .NET Connector. How can I mimic "mysqldump" from within a query (in Windows) that I can send to my connection instance then execute?

Thoughts?

1
  • 2
    Would this help? Commented Jun 24, 2011 at 19:05

1 Answer 1

1

If you need a hot backup, I think you are out of luck. All backup options/products require external products to be run. Is this ISAM or INNODB tables?

Sign up to request clarification or add additional context in comments.

2 Comments

They are MyISAM. If they were INNODB I'd just wrap all my calls in transactions and forget about backups.
Hmm, I think with MyISAM you can lock the tables, flush them and then copy them to annother table. Of course that brings things to a grinding halt.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.