Can I connect to an existing database, when installing? Can I connect to an existing database, when installing?
 

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]

Main Menu

Can I connect to an existing database, when installing?

Started by doctorjellybean, August 09, 2007, 12:33:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

doctorjellybean

I was running cpg on a linux server, until the site went down. The tech support staff managed to get my hosting account back online, minus the website itself. They did however manage to save the old MySQL database, which contains the galleries, registrations, etc (I hope).

Now that I have to re-upload my website, re-install my scripts, is it possible to install cpg and connect to the existing database and tables so it can retrieve the information already stored?

If yes, how do I do that?

Thanks in advance.

Nibbler

Coppermine will use whatever database info is in include/config.inc.php.

doctorjellybean

Thank you, that worked.

Are the images itself stored in the database as well? I can connect to the gallery, it shows the users, etc, but there are just blank boxes where the images should be. The image titles are there.

Joachim Müller

No, obviously, the images are not stored in the database, only the relative paths that point to the images. Right-click, properties on any (missing) image to find out where coppermine expects to find it.
If you still have your original pics, use coppermine's admin tools to re-build the thumbnails. Posting a link to your gallery might help as well.

doctorjellybean

Well, here is the link: http://www.peggysprops.co.uk/gallery/

So do I (and everybody else) have to re-upload the images to its respective albums and then I just re-build the thumbnails? Or would it be easier to delete all albums and start from scratch?

Quote from: GauGau on August 09, 2007, 03:42:48 PM
No, obviously, the images are not stored in the database, only the relative paths that point to the images. Right-click, properties on any (missing) image to find out where coppermine expects to find it.
If you still have your original pics, use coppermine's admin tools to re-build the thumbnails. Posting a link to your gallery might help as well.

Joachim Müller

With only 64 images that reside in your database :-\? Perform a fresh install and re-upload all pics. I thought we were talking about thousands of images...

doctorjellybean

Sorry, no. I was merely thinking about saving registered members the hassle of having to re-register again. The images itself are no problem, they can be uploaded again anyway.

Thanks very much, you have been a great help  :) Learned a few things  ;D

Joachim Müller

If you want to preserve your registered users, just empty coppermine's pictures table and re-upload the pics.