Solved

XML 2 mySQL

Posted on 2006-07-01
1
332 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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now