 | |  | |
July 13th, 2005, 07:11 PM
|
#1 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Backing Up
How can I backup the images in my old database to move into my new one if possible, and then how do I add them back?
|
| |
July 13th, 2005, 07:14 PM
|
#2 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Backing Up
Back up the database. Back up everything under the files directory under your Gallery directory.
|
| |
July 13th, 2005, 07:15 PM
|
#3 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Backing Up
The images aren't stored in the DB, only info about them. The actual images are in that files directory.
|
| |
July 14th, 2005, 11:01 AM
|
#4 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
Right i've copied all users images to files on my computer. Kept them in the same directory structure. I've also backed up my gallery database and saved that to my computer also.
However, my forum db tables now start with FORUM so how can I add this back so users images are how they were before I changed the forum around? I've also moved the forum to a new folder so it's not www.sgfdgdgd.com/fourm but now www.sfr4tr4gt53.com/community |
| |
July 15th, 2005, 11:44 AM
|
#5 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
Brian, are you there?
Is there a way to do this?
|
| |
July 15th, 2005, 12:21 PM
|
#6 (permalink)
| | Guest | Re: Backing Up
Just upload the images, restore your gallery backup, and then rename the tables and add the prefix to each one.
| |
| |
July 15th, 2005, 02:20 PM
|
#7 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
Right, i have the text file backed up onto my computer. How do I install this back into the database. The text file is named '_TABLE_.sql' and is 367kb in size.
I'm just re-uploading my users images back into the gallery folders on my server.
|
| |
July 15th, 2005, 02:22 PM
|
#8 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
..bearing in mind that i now already have vbgallery installed again with prefixes FORUMtablename already, but it is turned off and there are no new images
|
| |
July 15th, 2005, 02:39 PM
|
#9 (permalink)
| | Guest | Re: Backing Up
Either go to phpMyAdmin and upload the sql file through there, or restore it through telnet. Then delete the gallery tables that were created when you installed it again and rename the tables you just restored.
| |
| |
July 15th, 2005, 04:12 PM
|
#10 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
Okay, with telnet I can use this command can't I? I don't want to delete my db (I have backed up though):
mysql -uUSERNAME -p NEWDBNAME < /PATH/TO/NEW/FILE.SQL
|
| |
July 15th, 2005, 04:35 PM
|
#11 (permalink)
| | Guest | Re: Backing Up
Yes.
| |
| |
July 15th, 2005, 06:48 PM
|
#12 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
Well it didn't work. Users were assigned to the wrong images and images were not assigned to anyone. Even when updating counters.
Never mind, just have to start from new.
|
| |
July 15th, 2005, 06:56 PM
|
#13 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Backing Up
If users were assigned to the wrong images, then you didn't use the same user table that you were using before. The userids don't get changed during a backup/restore.
|
| |
July 15th, 2005, 09:15 PM
|
#14 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
I first re-inserted the forum database for my new forum.
I then inserted the gallery database and changed the adv_gallery_name_thingy to FORUMadv_gallery_name_thingy
My database prefix is now FORUM, I had none before.
It didn't work. My forum does.
|
| |
July 15th, 2005, 10:23 PM
|
#15 (permalink)
| | Ultimate Member Verified Customer
Join Date: Nov 2003 Location: Raleigh, NC
Posts: 1,413
| Re: Backing Up
Reinserted? Or Restored?
|
| |
July 17th, 2005, 09:11 AM
|
#16 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
restored
|
| |
July 17th, 2005, 08:04 PM
|
#17 (permalink)
| | Guest | Re: Backing Up
There's no way that would happen unless you modifed your user table and/or your gallery tables.
| |
| |
July 18th, 2005, 05:08 PM
|
#18 (permalink)
| | Member Verified Customer
Join Date: Jul 2004 Location: Lancashire
Posts: 249
| Re: Backing Up
My tables were exactly the same as they were when they were downloaded. I wouldn't know how to alter them.
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 12:59 PM. | |