Executing mysql dump / restore within a C++ program
Hello there,
I'm working on a project since a few month and I need to execute differents mysql dump and restore. For now, I simply used the C++ function system() to execute my mysqldump command.
But, with this solution, I can't handle the errors returned by mysql.
I tried to run the command with _popen too. But the mysql (in restore case) command does not return anything (but it print errors in the console, stange).
So my last hope to get the appropriates errors after a mysql restore, is to execute this command inside my program, with the mysql library.
But here I am, because I've found nothing on the documentation about this, only about executing queries.
Best Regards,
Clement.
Subject
Views
Written By
Posted
Executing mysql dump / restore within a C++ program
2583
November 08, 2012 05:33AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.