copying database tables copying database tables
 

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

copying database tables

Started by Deus, October 06, 2005, 12:43:14 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

Deus

I am in the process of setting up another site just for the psp browser.
only trouble is, i dont want to go through the whole process of copying files, and batch adding 20,000+ images.

So my question is, can i copy the relevant database tables to the new subdomain?
the original path is ripoffbritain.org/wallpaper/albums
the new path is psp.ripoffbritain.org/albums

does anyone know if this is possible and what problems it might cause?

TIA
Deus
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

artistsinhawaii

If you are on the same domain and don't mind sharing the database. Just change the paths in your new copy's  Config settings... : Target address for the 'See more pictures' link in e-cards .

Just remember that file additions/deletions in one will affect the other.

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Deus

never thought of that, nice one... but just had another idea, this one is much more complex...

how about a detection system that dynamically changes the config... ie, detects what browser your using and resizes images (this would have to be pre done) changes the layout etc...

or maybe a detection to redirection would be easier?
https://daz-stuff.uk
DJ tutorials, E-Bikes, Movies and videogames.
(https://daz-stuff.uk/daz/signature.png)

artistsinhawaii

Quote from: Deus on October 06, 2005, 01:10:48 AM
never thought of that, nice one... but just had another idea, this one is much more complex...

how about a detection system that dynamically changes the config... ie, detects what browser your using and resizes images (this would have to be pre done) changes the layout etc...

or maybe a detection to redirection would be easier?

For the most part all you will have to do is either copy the new thumbs_imagefile.jpg, normal_imagefile.jpg, and imagefile.jpg from one to the other. Or delete from the other if you deleted it from one.   The paths would already be  inserted in or deleted from the database, respectively.

Course if you have users creating albums and uploading, deleting like crazy... this would be a headache.  ;)

Dennis
Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.