NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Merging two databases.

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 06-06-2007, 10:59 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
Jerlene's Avatar
Join Date: Mar 2006
Location: LifesCircle.info
Posts: 954
Jerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of lightJerlene is a glorious beacon of light
 




Merging two databases.


I have two databases. See screenshot below for better explanation.



I want database one to be merged into database two and have database two be the main database with all information in it so I can get rid of database one.

How do I go about doing this?
__________________
Buy Backlinks
Jerlene is offline  
Old 06-06-2007, 11:21 PM   #2 (permalink)
NamePros Regular
 
monaco's Avatar
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 689
monaco will become famous soon enough
 



export one of them and exclude any autogenerated/incremented identity fields. Then just import it into the other one. They both appear to be phpbb tables, so the schema should be identical, if not very similar.
__________________
My Website | My Blog
monaco is offline  
Old 06-06-2007, 11:47 PM   #3 (permalink)
NamePros Expert
 
Peter's Avatar
Join Date: Nov 2003
Location: Scotland
Posts: 5,074
Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute
 


Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
if they are both phpbb tables it is not going to be that easy. The auto increment fields that you mention are used to distinguish who posted what for example and who pm's are who's.

If you simply merge them ignoring the auto increment then the members on the original database will suddenly be credited for more posts than they posted and will have m's not intended for them.

Another potential problem is if 1 database has extra fields etc (maybe for mods or for some other reason).
Peter is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


 
All times are GMT -7. The time now is 02:21 PM.

Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger