python: Session from mysql save as xml?

stoughto chris.stoughton at gmail.com
Tue May 10 22:07:50 EDT 2016


Yes, I can do backups via mysqldump, and that works fine.  Thank you for
the help.




On Tue, May 10, 2016 at 8:55 PM, Plutocrat [via GnuCash] <
ml-node+s1415818n4684816h35 at n4.nabble.com> wrote:

> Chris Stoughton wrote on Tuesday, 10 May, 2016 08:04 PM:
> > Sorry that the question was not clear.  The source in this example is in
> a
> > mysql database.
>
> Seemed clear you were trying to backup from mysql to XML. I guess the
> return question was why would you want to do that? Its simple to backup
> from mysql into an sql text file, which has the advantage that it can
> easily be restored to the database. eg.
> To dump
>         mysqldump -u username -p databasename > dump.sql
> To import
>         mysql -u username -p databasename < dump.sql
>
> You can of course optionally add the date to the filename and/or compress
> the file with the same commandline.
>
> I imagine exporting to XML would mean that it was trickier to get it back
> into the mysql database. But perhaps there was some reason why you wanted
> it in XML format?
>
> P.
>
> _______________________________________________
> gnucash-user mailing list
> [hidden email] <http:///user/SendEmail.jtp?type=node&node=4684816&i=0>
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://gnucash.1415818.n4.nabble.com/python-Session-from-mysql-save-as-xml-tp4684790p4684816.html
> To unsubscribe from python: Session from mysql save as xml?, click here
> <http://gnucash.1415818.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4684790&code=Y2hyaXMuc3RvdWdodG9uQGdtYWlsLmNvbXw0Njg0NzkwfDE5MDc5MDM5NTk=>
> .
> NAML
> <http://gnucash.1415818.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://gnucash.1415818.n4.nabble.com/python-Session-from-mysql-save-as-xml-tp4684790p4684817.html
Sent from the GnuCash - User mailing list archive at Nabble.com.


More information about the gnucash-user mailing list