Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Delete database can I restore my files? Cioppermine critical error.  (Read 4240 times)

0 Members and 1 Guest are viewing this topic.

retrofades_x

  • Coppermine newbie
  • Offline Offline
  • Posts: 6

Version:  1.4.20

I had lots of databases on my server that I do not use so I was deleting them one by one, then I accidently deleted my gallery. Is there a way I can get everything back with all the pictures still in their folders with my theme that I was using? I still have all the files on my server so would my host be able restore the gallery? Or could I create a new database and transfer all the files I have to the new database? I get this error when trying to access my gallery:

Coppermine critical error:
Unable to connect to database !

MySQL said: Access denied for user 'web244-a-copp-23'@'localhost' (using password: YES)


Help is very much appreciated. Thank you.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #1 on: August 08, 2009, 11:20:52 am »

In a word, no. The actual pictures are stored in the albums folder but all the details about them and where they go are stored in the database. Hopefully you or your host will have a backup of your database which can be restored iv available.

If not then you will need to re-upload all the pictures, re-create all your users and a lot more besides.

I know it is a bit late to tell you this but always do regular backups of your databases and always do a backup before doing any fiddling woth your database.
Logged
It is a mistake to think you can solve any major problems just with potatoes.

retrofades_x

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #2 on: August 08, 2009, 11:22:40 am »

Ok thank you. I've contacted my host and I'm just waiting for a response.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #3 on: August 09, 2009, 09:07:21 am »

If you can't go for the prefered option of restoring the database, there is a method that is less drastic than what Phill said: after all, the files already reside on your server, so you don't have to re-upload them, but you can start from scratch as far as your database is concerned, but not as far as file uploads are concerned: use batch-add to re-upload all those files into a fresh database. Pre-requisite is that there is a structure inside your album folder that makes sense, so the big question is: did you perform http uploads to populate your old gallery or did you perform FTP uploads plus batch-add. Were you the only uploader or did others upload as well?
All of this is so much easier to determine if you post a link to your gallery when asking for support, that's why we made this even a mandatory forum rule: you need to post a link to your gallery when starting a new thread, so why don't you?
Logged

retrofades_x

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #4 on: August 09, 2009, 10:33:23 am »

If you can't go for the prefered option of restoring the database, there is a method that is less drastic than what Phill said: after all, the files already reside on your server, so you don't have to re-upload them, but you can start from scratch as far as your database is concerned, but not as far as file uploads are concerned: use batch-add to re-upload all those files into a fresh database. Pre-requisite is that there is a structure inside your album folder that makes sense, so the big question is: did you perform http uploads to populate your old gallery or did you perform FTP uploads plus batch-add. Were you the only uploader or did others upload as well?
All of this is so much easier to determine if you post a link to your gallery when asking for support, that's why we made this even a mandatory forum rule: you need to post a link to your gallery when starting a new thread, so why don't you?

I uploaded them through FTP and I was the only one uploading picture. Gallery link: http://www.varsityfanclub.co.uk/gallery
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #5 on: August 09, 2009, 10:41:17 am »

OK, then try to do as suggsted first: try to get a database backup and restore that. In the future, backup your database before performing silly cleanups.
If restoring the database fails (because there is no backup you could go back to), perform a fresh install using the data on your server. To accomplish that, use your FTP app and delete http://www.varsityfanclub.co.uk/gallery/include/config.inc.php and http://www.varsityfanclub.co.uk/gallery/include/install.lock (back up those files before deleting them). Then perform the install by going to http://www.varsityfanclub.co.uk/gallery/install.php - this will re-create the empty coppermine database tables that you need. Go to coppermine's config and set it up in the way you want. Create the categories and albums you need. Finally, go to the bathc-add screen and re-add the pics to your database once more. Alternatively, use the plugin CPGMassImport as an alternative for the creation of categories and albums and batch-adding (if the folder structure already corresponds to your category/album structure).
Logged

retrofades_x

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #6 on: August 09, 2009, 10:47:10 am »

Ok thank you. How do I back up just those two files?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #7 on: August 09, 2009, 10:58:43 am »

Urm, what? How do you back up files? Well, that's the very basic thing you need to know when running a site: you download the file from the webserver to your client using your FTP application that you used to upload coppermine in the first place.
Logged

retrofades_x

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #8 on: August 09, 2009, 11:04:41 am »

I went here: http://www.varsityfanclub.co.uk/gallery/install.php and got this error:

Could not create a mySQL connection, please check the SQL values entered

MySQL error was : Access denied for user 'web244-a-copp-23'@'localhost' (using password: YES)
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4886
    • Windsurf.me
Re: Delete database can I restore my files? Cioppermine critical error.
« Reply #9 on: August 09, 2009, 12:17:57 pm »

You need the correct details from your host or your hosting admin panel. The error you are getting simply states that the script cannot connect to the database so either you are supplyint the wrong credentials or there is something wrong with the database. Either way it is something you need to talk to your host about.
Logged
It is a mistake to think you can solve any major problems just with potatoes.
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 19 queries.