Solved

XML 2 mySQL

Posted on 2006-07-01
1
336 Views
Last Modified: 2013-12-25
Hi,

I am trying to Sync some data (not full database, but selected database) between 2 mySQL server that is not connected via LAN.

I and trying to use VB to export the data to an XML file, and, import it to another mySQL server.

May I know is there any simple way to export and import the XML file? I am totally new to XML. May I have some sample/direction?

Thanks in advance.

Regards,


0
Comment
Question by:cybeh
1 Comment
 
LVL 35

Accepted Solution

by:
Raynard7 earned 500 total points
ID: 17025321
If you are trying to synch the data there may be easier ways to do so;

I would reccomend that you export the data from one as a series of SQL statements and another to execute the SQL statements.  That way you know everything has been exported that you want and they will be re-inserted the way you retreived them.

You would need to use the mysql dll for parsing the data - or use one of the batch scripts.  There is information in the help file about running exports to SQL.

XML is good if you want to go across database platforms - as if you have the schema correct you can then modify the inserts; tailoring for the destination database,

If you want just to go from like to like - SQL exports would perform the job much easier.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question