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: Upload Backup Database  (Read 4030 times)

0 Members and 1 Guest are viewing this topic.

Vapor

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Upload Backup Database
« on: December 07, 2004, 03:00:27 am »

How/where do you upload backup database??

Please help!

Thanks!!!

email: indefinable[at]gmail.com
« Last Edit: February 19, 2005, 08:15:25 am by TranzNDance »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload Backup Database
« Reply #1 on: December 07, 2004, 07:48:54 am »

Logged

isajade

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Gender: Female
  • Posts: 67
Re: Upload Backup Database
« Reply #2 on: December 07, 2004, 11:56:37 pm »

thanks that helped me too  :)
Logged

Vapor

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Upload Backup Database
« Reply #3 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....
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Upload Backup Database
« Reply #4 on: December 08, 2004, 12:33:28 am »

You would use phpmyadmin. Click the SQL tab, browse the backup file and click Go.
Logged

ChaosCrusader

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • Finalf Frontier - The Ultimate Free Space Wallpapers
Re: Upload Backup Database
« Reply #5 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?
« Last Edit: February 18, 2005, 11:07:15 pm by ChaosCrusader »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Upload Backup Database
« Reply #6 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
Logged

ChaosCrusader

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 20
    • Finalf Frontier - The Ultimate Free Space Wallpapers
Re: Upload Backup Database
« Reply #7 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.

xomaru

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Upload Backup Database
« Reply #8 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.
Logged

xomaru

  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Re: Upload Backup Database
« Reply #9 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.
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 15 queries.