Solved

Sync or export import Mysql table

Posted on 2011-03-23
4
262 Views
Last Modified: 2012-05-11
i runing Oscommerce and a accounting system. both also use Mysql Database. i now interested to integrate both program. to share product items. and invoice and PO. customer Database.

should i use sync found in some other problem. or should i do export and import?
0
Comment
Question by:aarontham
4 Comments
 
LVL 38

Accepted Solution

by:
Aaron Tomosky earned 500 total points
ID: 35204498
They are each going to use different table names, column names, etc. It's gonna be a custom programming fix no matter which way you go.
1. Export import from the apps
2. Insert/update script in mysql
3. Modify one app or the other to use the other apps schema. (don't do this as you won't be able to update either app. Ever.)

So you probably want to just automate an export import every night or so.
0
 
LVL 2

Expert Comment

by:ASta
ID: 35206792
May be you can write triggers in mysql 4 sync between DB (if both db placed on single server)
or write app 4 sync started by sheduler.
0
 
LVL 8

Expert Comment

by:wolfgang_93
ID: 35210630
I don't understand the synchronization issue. Would you not simply point each
application at the same database server and database and tables -- where
applicable? MySQL would handle the synchronization automatically (e.g.
a user on each application doing an update on the same table). Just make
sure that all the tables involved are InnoDB as they handle row-locking
etc. best.
0
 

Author Comment

by:aarontham
ID: 35212812
Hi wolfgang,

can you explaint more. as this 2 application use diffrence database and offcouse both also use diffrence table name. and how to get Mysql handle the sync auto.

0

Featured Post

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…

777 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