Import Data from PostgreSQL into MySQL for dataface

A place for users and developers of the Xataface to discuss and receive support.

Import Data from PostgreSQL into MySQL for dataface

Postby bpiper » Sat Oct 27, 2007 2:48 pm

I have a network monitoring application using a PostgreSQL database from which I would like to automatically export data on a regular basis and import it into mySQL for use in a dataface application. I cannot alter the netmon application to use a different database, so I'm stuck with Postgres on that one. But here's the idea of what I want to do:

1. Query the Postgresql database for certain records
2. Take the results from the query and check the mysql (dataface) database for overlapping records.
3. If any new records are found in the Postgres database, execute appropriate insert statements to add those records to the mysql db.
4. If any existing records have changed in the postgres database which already exist in the mysql database, update those accordingly.

I don't want to reinvent the wheel, but I haven't found a tool that would allow me to do this. What would be the most efficient way for me to get this done?

Thanks!!
bpiper
 
Posts: 5
Joined: Wed Dec 31, 1969 5:00 pm

DBSync for MySQL & PostgreSQL

Postby ADobkin » Sat Oct 27, 2007 5:42 pm

It sounds like this tool may do exactly what you want and then some:

http://dbconvert.com/convert-mysql-to-p ... l-sync.php

It's not free, but it seems pretty inexpensive for what it does. Then again, you could probably find or write something in your language of choice (PHP, Perl, Python, etc.) to accomplish basically the same thing.

Alan
ADobkin
 
Posts: 195
Joined: Mon Oct 22, 2007 7:31 pm
Location: Atlanta, GA, USA


Return to Xataface Users

Who is online

Users browsing this forum: No registered users and 9 guests

cron
Powered by Dataface
© 2005-2007 Steve Hannah All rights reserved