iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Database Discussion Forum This is the place to find help resolving those nagging questions you have about implementing and using all kinds of databases. Need help writing a query? Need an opinion on Oracle? Post here!

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2008, 03:49 PM
WebProWorld New Member
 
Join Date: May 2005
Posts: 8
cruiseagent RepRank 0
Default shared database

I am not a real tech person so I really could use some help in reference to databases.

I have two different web sites. One is php and the other is asp.net. Not real smart I know have two different formats. Did not know any better at the time.

So my question is I want to be able to have the databases talk to each other so the members will only have to log in once and have only one membership.

One database is mssql and the other is mysql is this possible? If so please explain so I can see about doing or hiring someone.
Reply With Quote
  #2 (permalink)  
Old 06-09-2008, 04:50 PM
WebProWorld Veteran
 
Join Date: Jan 2008
Posts: 304
Tech Manager RepRank 1
Default Re: shared database

Yes this is possible. You could set up the user validation within one website and have it act as the clearing house for user data. There really is no need to have both databases talk to eash other unless you plan to keep separate user data.

A simple connection to the database holding the credentials will take care of the matter. Assuming the databases are on the same server it is a piece of cake. If they reside on different servers it will work almost as easily. Just make sure the chosen database can handle remote connections.
__________________
I use Country IP Blocks as added security for my networks and servers.
Reply With Quote
  #3 (permalink)  
Old 06-09-2008, 10:40 PM
WebProWorld Member
 
Join Date: May 2008
Location: London
Posts: 82
kronikmedia RepRank 0
Default Re: shared database

Another alternative could be to write a bridge script of some sort that will automatically keep both websites in synch. You can also write a export script that will transfer data from one to the other and set this up as a cronjob,
Reply With Quote
  #4 (permalink)  
Old 06-10-2008, 11:35 AM
kgun's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2005
Location: Norway
Posts: 6,635
kgun RepRank 4kgun RepRank 4kgun RepRank 4kgun RepRank 4kgun RepRank 4
Default Re: shared database

There may already be a database connection class ready for you:

Class: Database Connection Classes (database, connection, database class, mysql connection) - PHP Classes

Relevant article:

The PHP Anthology Volume 1, Chapter 2 - Object Oriented PHP [PHP & MySQL Tutorials]

more precisely page 10.

The PHP Anthology Volume 1, Chapter 2 - Object Oriented PHP [PHP & MySQL Tutorials]
Reply With Quote
  #5 (permalink)  
Old 06-10-2008, 12:20 PM
WebProWorld New Member
 
Join Date: May 2005
Posts: 8
cruiseagent RepRank 0
Default Re: shared database

Thank you for all of the help. I might not of explained real well.

Here is what I am thinking about.
I have two web sites with two different databases of membership. One is php and the other is asp.net.

Here are my thoughts since both sites attract the same clients I wanted to make different memberships available. One would be to site 1 and the other would be to site 2 with a third option of a combo membership to site 1 and 2.

This would be for existing and new members.

All of this to be managed from just one admin area with one payment area and of course just one sign in to access the areas they are approved to access depending on the membership program each has.

I hope that this makes things a little clearer. Am I looking at a major project and major expense? I hope that this is all workable and not to expensive. Would it be easier to re write the asp.net product to php? I am just at a loss in what direction to go.
Reply With Quote
  #6 (permalink)  
Old 06-15-2008, 12:43 PM
advancedmerchant's Avatar
WebProWorld Pro
 
Join Date: Aug 2003
Location: Fullerton, CA
Posts: 174
advancedmerchant RepRank 1
Default Re: shared database

You could do it by having a single database, and adding 2 fields- "SITE 1" and "SITE 2" When someone signs up at site #1, you build the record, and set "SITE 1" to true. Same for Site 2. If someone from one site wants to register at the other, they can enter their login, but get a message asking if they want to be registered under the same name at this site as well. Once paid, you would set the flag for the second site. You would just have to add logic to check for the proper flag at login time to both sites, but you would have a single, integrated database.
__________________
Accept Credit Cards Anywhere!
www.merchantanywhere.com
Reply With Quote
  #7 (permalink)  
Old 06-17-2008, 08:15 AM
WebProWorld New Member
 
Join Date: Jun 2008
Posts: 5
sryk3 RepRank 0
Default Re: shared database

I think this will work. did u try it? please tell us what happened because i want to use this also
Reply With Quote
  #8 (permalink)  
Old 06-17-2008, 08:45 AM
WebProWorld New Member
 
Join Date: May 2005
Posts: 8
cruiseagent RepRank 0
Default Re: shared database

We have not tried as yet. We are looking for someone to do this. We have a bid request out with a few different areas, rentacoder and elance to see what the cost would be. Will let you know
Reply With Quote
  #9 (permalink)  
Old 12-04-2008, 11:59 PM
WebProWorld New Member
 
Join Date: Dec 2008
Posts: 3
angeldemon RepRank 0
Default Re: shared database

i prefer having the login info located in one db (mysql) and the rest on the other db (mssql) and then have the application use both db.
Reply With Quote
  #10 (permalink)  
Old 12-23-2008, 04:33 PM
WebProWorld New Member
 
Join Date: Aug 2006
Location: Oklahoma City
Posts: 6
marms676 RepRank 0
Default Re: shared database

I am interested in seeing how this shakes out. I have a similar senerio where I have a MySQL CRM and an accounting system on MS SQL Server that need to communicate
Reply With Quote
  #11 (permalink)  
Old 03-17-2009, 04:40 AM
Banned
 
Join Date: Mar 2009
Location: UK
Posts: 20
Jenniferlinn RepRank 0
Default Re: shared database

I don't think it is possible as both of your databases are different and if by chance it is possible then there will be lot of in-depth knowledge required for both databases
Reply With Quote
  #12 (permalink)  
Old 05-11-2009, 05:58 AM
WebProWorld New Member
 
Join Date: Nov 2008
Posts: 7
devkant RepRank 0
Default Re: shared database

Yes you can connect both databases MR. Tech Manager had guide in right direction follow those steps and you will be able to connect them.
Reply With Quote
  #13 (permalink)  
Old 05-15-2009, 05:52 AM
WebProWorld Member
 
Join Date: Jul 2008
Posts: 27
Gtal RepRank 0
Default Re: shared database

Those options seem to be some good advice you should use. Have you sorted out the migration of both database and how you will deal with the different formats? Maybe exporting them and then uploading them together in the same table.
__________________
Visit Talend and Talendforge for open source ETL and data integration.
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Database Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Shared Borders Andy Romano Search Engine Optimization Forum 1 10-29-2005 05:11 PM
Fixed or shared IP onelife Search Engine Optimization Forum 10 10-03-2005 08:17 PM
Shared reciprocal links database ok? eggypiece Google Discussion Forum 0 11-24-2004 07:52 PM
How shared is shared..? Dragonsi IT Discussion Forum 9 05-23-2004 04:37 PM
Shared Printers? tammster37601 IT Discussion Forum 4 03-18-2004 09:22 PM


All times are GMT -4. The time now is 06:03 AM.



Search Engine Optimization by vBSEO 3.3.0