I need to tidy up the database I need to tidy up the database
 

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

I need to tidy up the database

Started by NatalieFord, November 17, 2004, 01:35:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NatalieFord

...because it seems to contain links to files that no longer exist (e.g. http://natalieford.com/photos/thumbnails.php?album=2&page=3). How should I remove these links from the database? ???

Casper

This happens when you remove things by ftp, or you used a database dump when you moved from another server, but did not bring all the pics with you.

If you still have those pics, ftp them into the folder they used to be in.  Then use coppermine to delete them.  otherwise, you will have to edit the database pictures table, and manually remove the entries for these pics.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

NatalieFord

Quote from: Casper on November 17, 2004, 04:50:03 PM
This happens when you remove things by ftp

Yep. I learnt the hard way.

QuoteIf you still have those pics, ftp them into the folder they used to be in.

They no longer exist.

QuoteOtherwise, you will have to edit the database pictures table, and manually remove the entries for these pics.

That is what I thought. How do I do that? What access do I need? What tools?

Casper

Whatever tool your host provides for your use, something like phpMyAdmin.

With that you can do anything you want to the database.  Be aware, it is very easy to cock it all up when you don't know what you're doing.

Before you do anything else, you should make a backup(dump) of the database, so you can restore everything if it goes wrong.

You should regularly make a back-up anyway.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here