Jump to content

Connecting to multiple databases.


clowes

Recommended Posts

Hello.

 

I am looking for some advice on the best way to achieve what I am looking for.

 

I have various websites. 2 or 3 utilize wordpress as a CMS, and use the ExecPHP plugin to execute my PHP content. The others do not use any CMS.

 

I want to setup a system such that a user can register on any ONE site, and that registration is valid for every site in my network.

 

My idea was a separate database for user information. I could then switch between each sites database and the 'users' database.

 

This is extremely complicated with wordpress however, as I cannot go through and change every wordpress query to include the database which it is querying.

 

Is the above viable? If not does anyone have a better suggestion to achieve the wanted results.

Thanks

Link to comment
https://forums.phpfreaks.com/topic/196392-connecting-to-multiple-databases/
Share on other sites

Select one of those 10 websites which will become the base for authentication it's best to select the one with the easiest/best coding as you will have to make some adjustments so that all websites authenticate with the same database. Research how each application identifies a user as logged-in and make sure your modifications match this.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.