Our server wiped our Coppermine Photo gallery and replaced it with a script that says security breach. I reinstalled Coppermine and now I need to connect the old database to the new gallery. We have a lot of photos and I would hate to lose the captioning and hard work that was done by our staff.
Can someone please explain if this is possible to connect the old database with the new installation?
We are using the latest version of Coppermine not the beta version though.
Thank you,
Shawnee Penkacik
Technical Advisor
http://www.amtam.com
Hi byzmom,
I believe, in order to do this, you will need all your old files copied to the same directory (url) structure as it was before and the old data base must still be in the server.
Copy all your files onto your server just the way they were before.
Edit the "config.inc.php" file in the 'INCLUDE' folder of your coppermine installation. Change the necessary fields to what your old installation was.
That should do it.
Otherwise, you'd have to do it the old-fashioned way of making a dump/update sql of the old database, installing coppermine as a new install. ( you need to delete the install.lock file in the Include Folder if it is there). Then importing the old data into the new one.
Dennis
Quote from: madeinhawaii on September 13, 2005, 07:55:02 AM
I believe, in order to do this, you will need all your old files copied to the same directory (url) structure as it was before and the old data base must still be in the server.
Here the "old files" refer to the image files you uploaded/FTPed to the "albums" directory. i.e. the structure of "albums" directory should be the same as it was before. But if you don't have the old "albums" directory structure then i am afraid you will have to do all the image uploading again.
Thanks for your help everyone. The old database is in the server and I have done all that you have instructed but got this error message
Notice: Undefined index: debug_mode in /home/amtamco/public_html/gallery2/include/functions.inc.php on line 96
Fatal error :
There was an error while processing a database query
Is there a way to fix?
Shawnee
Does coppermine open to the Albumlist (default page) when you try to open it?
If so, set the debug mode on and post the error messages.
Dennis
Make sure include/config.inc.php has the correct information.
bzymom,
I just tried http://www.amtam.com/gallery2/index.php and it loaded okay except that there are a number of pictures that do not display in thumbnail and intermediate size. The gallery button at the top of your homepage doesn't link properly to your gallery URL, but the bottom one does.
To get your pictures to display properly you will need to go to Admin Tools and rebuild the thumbnails and intermediate sized photographs for the albums that do not display properly.
Also run the "update database" utility in the Admin Tools section as well.
Dennis
http://www.amtam.com/gallery2/index.php seems to be working fine to me. Marking the thread as solved.