coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Installation & Setup => Topic started by: Vapor on December 07, 2004, 03:00:27 AM

Title: Upload Backup Database
Post by: Vapor on December 07, 2004, 03:00:27 AM
How/where do you upload backup database??

Please help!

Thanks!!!

email: indefinable[at]gmail.com
Title: Re: Upload Backup Database
Post by: Joachim Müller on December 07, 2004, 07:48:54 AM
http://coppermine.sourceforge.net/faq.php#BackupDatabase

Joachim
Title: Re: Upload Backup Database
Post by: isajade on December 07, 2004, 11:56:37 PM
thanks that helped me too  :)
Title: Re: Upload Backup Database
Post by: Vapor on December 08, 2004, 12:01:24 AM
Uh, that only showed me how to backup my database not to upload/replace an existing db with the backup file i downloaded via. cpanel....  I tried the cpanel upload an existing backup feature but nothing happens....... does the gallery have a auto backup upload feature?

wow, i hate my life, this is going to be horrible if i have to redo everything....
Title: Re: Upload Backup Database
Post by: Tranz on December 08, 2004, 12:33:28 AM
You would use phpmyadmin. Click the SQL tab, browse the backup file and click Go.
Title: Re: Upload Backup Database
Post by: ChaosCrusader on February 18, 2005, 10:52:55 PM
I'm also having a problem with this.  I've followed the steps mentioned above to upload my backup using phpmyadmin.  The database contains the date etc, but when I go into Coppermine nothing has been changed.

I'm switching servers and using CPG1.3.1 on one and CPG1.3.2 on the new server.  It seems that the tables in my backup is named cpg131_table and CPG1.3.2 using cpg132_table.  Is there an easy way to get the data into the new tables?
Title: Re: Upload Backup Database
Post by: Joachim Müller on February 19, 2005, 07:25:44 AM
before importing the mySQL dump into your new database, edit it with a plain text editor and do a search/replace. Search for "cpg131_" and replace with "cpg132_".

Joachim
Title: Re: Upload Backup Database
Post by: ChaosCrusader on February 19, 2005, 08:09:03 AM
Thanks.  I figured that out after a while, although for some reason it didn't work for the comments, but that's not a big problem.
Title: Re: Upload Backup Database
Post by: xomaru on March 31, 2005, 10:47:24 PM
hi guys,

i'm switching webhost and have followed instructions available on this board. but i am stuck at the restoration of the dumped file in the new server.

in PHPMyAdmin, i go to "SQL". then i browse to the dumped file and clicked "go!".

after a while, i get this message:

"No SQL Query! No tables found in database."

do i have to create all the tables before i can do the restoration? if not, what else do i need to do?

any advice will be apppreciated. i'm totally lost.

hope to hear from someone soon. much thanks in advance!

cheers,
dan.
Title: Re: Upload Backup Database
Post by: xomaru on March 31, 2005, 11:15:40 PM
hi guys, an update!

i've managed to restore the dumped file into the new server.

a coupla things i did wrong which i thot i'd lay down in the off chance that it might benefit someone else:

1) when i exported/dumped the file from the original server, i actually FORGOT to select all the tables before exporting them! make sure you "Select All" the tables.
2) tick ONLY "structure" and "data" under the "SQL options" section. by default there may be other items such as "Add Auto_Increment value" and "Enclose table and field names with backquotes" ticked. i had these ticked the first time round and got an error when i tried importing the dumped file. so make sure you untick everything except "structure" and "data".

yep, that's about it. i'm off to my next step. so hopefully that's my gallery migrated!

cheers,
dan.