+ Reply to Thread
Results 1 to 3 of 3

Thread: Database Merging

  1. #1
    mobstermind61's Avatar
    mobstermind61 is offline x10Hosting Member mobstermind61 is an unknown quantity at this point
    Join Date
    Jul 2011
    Location
    Pennsylvania
    Posts
    47

    Database Merging

    Okay I have a a Database for a Forum and I have a Database for a Music Community, but I want to merge the two Databases Login and Registers together so if someone creates an account for my forum it will create an account for the Music Community site as well, A lot of my members don't want to take the time to sign in or register 2 times just to use all the features to my site.

    Now The problem is I know this can be done but I am not exactly sure how to do it so I don't have to go through all my php files and change the table calls, cause in turn that would take me forever. The thing is the users table in the Databases in both different and have different structure and names, example the Music Community Database has a table called (id) meaning the users registration id, but for the forum it has (uid) meaning the same thing but just names different.

    Is it possible to send out 2 messages out to the 2 databases all in one login or registration form, so I wouldn't have to configure the Databases. I am so lost with this. Please help!

    Links| www.pawebdesigner.com | Join My Group | Visit My Profile | My Activity |Links
    If I helped you please give me Reputation by clicking star Icon at the bottom left hand corner of my posts.


  2. #2
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: Database Merging

    Quote Originally Posted by mobstermind61 View Post
    Is it possible to send out 2 messages out to the 2 databases all in one login or registration form, so I wouldn't have to configure the Databases.
    Since the data models are different for each package, this is the simpler solution. However, it involves more than simply creating accounts simultaneously. You'll want to synchronise the data in the databases, so that (for example) if a user changes their e-mail address or password for one account, the other account will be updated. The exact design & implementation depends on the internals of each package, which you haven't described, so there's no way of saying anything specific. It's also not a trivial task in terms of time, so be prepared to either spend a fair bit of it yourself or hire someone. For the latter, you could post in the X10 marketplace.

    Note that there is no such thing as a "message" in relational databases. The conceptual framework is based on relations, not messaging.
    Last edited by misson; 11-25-2011 at 11:15 PM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  3. #3
    e-base93 is offline x10Hosting Member e-base93 is an unknown quantity at this point
    Join Date
    Nov 2011
    Posts
    2

    Re: Database Merging

    It is possible, howver this doesn't work for every package unless you created your own login system.
    if you can wait till i get my website up (somwhere in the next few days if i'm lucky), i'm willing to help you with that.

+ Reply to Thread

Similar Threads

  1. Merging of Hosting Accounts?
    By tfcshoebox59 in forum Off Topic
    Replies: 1
    Last Post: 04-13-2011, 07:50 PM
  2. Merging x10hosting accounts
    By meetii71 in forum Free Hosting
    Replies: 2
    Last Post: 12-15-2010, 02:15 AM
  3. Replies: 1
    Last Post: 04-17-2010, 12:26 PM
  4. Site merging
    By kushie in forum The Marketplace
    Replies: 0
    Last Post: 02-13-2010, 06:15 AM
  5. Merging script
    By brunoais in forum Scripts & 3rd Party Apps
    Replies: 4
    Last Post: 09-23-2008, 02:22 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers