Forum Moderators: buckworks

Message Too Old, No Replies

Access to multiple databases

access to two different databases with one single account

         

vidyps79

1:13 pm on Sep 25, 2008 (gmt 0)

10+ Year Member



Hello,

I need a help. I want to connect to two different databases at the same time when I log in to "X-Cart". There is "config.php" with certain parameters (user name, password, localhost and database name), so I guess I'd have to make another "config.php" named "config1.php" with the same parameters, except database name. But the problem is, where should I call this "config1.php"? Is it in "init.php" or elsewhere?

Best regards, Vladimir

Morgenhund

7:53 pm on Oct 14, 2008 (gmt 0)

10+ Year Member



Hello Vladimir,

and welcome to WebmasterWorld!

Basically, there is no way to use two different databases within a product that is not designed to do so (I doubt X-Cart can use 2 databases).

One workaround for you might be to merge 2 databases into single one -- but you need good database skills for that.