Bridging MYSQL Databases Bridging MYSQL Databases
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Bridging MYSQL Databases

Started by davelu, September 10, 2006, 09:07:13 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

davelu

Hey,

The gallery that runs on my site is almost short on Mysql space, and i want to know whether it's possible to bridge two mysql databases togther so it would act as one. The limit that's set on 1and1 is 100mb, and i already used 70+% of the 100mb, so i'm a bit worried. The space is mostly occupied by comments, which there are about 3341 comments, and i have no intentions of closing the gallery's comment board. You can view the gallery here.

I called up 1and1 and they said they couldn't do anything about it. >_<

Thanks!
-Dave

davelu


Sami

What do you want to do?
Are you trying to use any other mysql server instead of 1and1 server if yes then you need to create a backup from your db and restore it under new server and also you should have remote access permission on new server ...
‍I don't answer to PM with support question
Please post your issue to related board

davelu

#3
What i want to do is to have two databases working as one. so i would have more space. Is that possible? \



EDIT: Is it possible to reroute the database that the comments are written in? Instead of writing in the main database where everything else is at, could i call it from another database?

kegobeer

No, you can't have two databases working as one.  Ask your host to increase your database storage, or get another database host.
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Joachim Müller


Nibbler

You should be able to do that if both dbs are on the same server and accessible by the same mysql user. Modify include/init.inc.php to redefine the comments table and give the existing coppermine db user rights to the new db.

$CONFIG['TABLE_COMMENTS']   = $CONFIG['TABLE_PREFIX'].'comments';

becomes

$CONFIG['TABLE_COMMENTS']   = "`new_db_name`." . $CONFIG['TABLE_PREFIX'].'comments';