Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Why 2 databases ?  (Read 3903 times)

0 Members and 1 Guest are viewing this topic.

laubert

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 42
Why 2 databases ?
« on: June 26, 2005, 10:23:07 am »

Hi,

I want to use Coppermine bridged with phpBB and I can read in Coppermine's documentation
Quote
It is recommended that you use the same database for your board and Coppermine (in fact it is even mandatory!).

Is it actually mandatory to use only one database ?

I have tested on a local server with two distinct databases and it seems to work without problem...
Could there be any problems that I haven't seen ?

Thank you.
Logged

fm-2

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 3
  • I'm Human... I make mistakes
    • MonteCarloHosting.Net
Re: Why 2 databases ?
« Reply #1 on: June 27, 2005, 04:21:46 am »

Hi,

I believe the reason for this is, because on a host you don't run under root, so you can't use dbname.dbtable like you can on localhost.

CPG needs to be able to access the session/user tables from phpBB in order to integrate into it... There is no security risk in putting them in one database.

Sincerely,
Christian
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Why 2 databases ?
« Reply #2 on: June 27, 2005, 04:26:45 am »

@laubert, if you were able to do it, it would help others who want to do the same if you could please post how you did it.
Logged

Nibbler

  • Guest
Re: Why 2 databases ?
« Reply #3 on: June 27, 2005, 02:03:23 pm »

The issue isn't actually the 2 databases, it's the 2 database connections usually required for 2 different databases. They are not handled properly in cpg 1.3.x (but now are in 1.4.x). If you have the forum and cpg in 2 different databases then it can work if you use the same db user for both databases (eg root + no pass). Stating they must share the same database just makes things easier.
Logged

laubert

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 42
Re: Why 2 databases ?
« Reply #4 on: July 10, 2005, 05:54:28 pm »

Thank you all.

After a pause with my tests, I have now tried to my host.
I'm not root.

I use CPG 1.3.3 and PHPBB 2.0.16.

2 distinct databases.
2 distinct dbusers.

And ...
... it works.

It's now in test with a couple of friend users and we don't get problems...
« Last Edit: July 10, 2005, 08:46:33 pm by laubert »
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 15 queries.