coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: kerrsmithws on May 14, 2005, 06:29:10 AM

Title: Changing Over Servers
Post by: kerrsmithws on May 14, 2005, 06:29:10 AM
Hello I am the administrator for a site. Now I had the old server but I moved over to a new one. I have the gallery folder moved over too. But unforchanately the gallery is still stuck to the old MySQL server. Is there a way I can change the MySQL so I dont have to start the gallery all over again? ???
Title: Re: Changing Over Servers
Post by: pulz on May 14, 2005, 12:25:27 PM
Just export the old database with for instance phpmyadmin from the old server and import it in the DB of the new server.

Just keep the album names etc the same on your new server and it will work, i've done it several times without any problems


1) On your old server, goto your database programm (mostly) phpmyadmin so I will give instructions for the phpmyadmin version:

2) On the first page select export.

3) In the following screen select under the export drop down menu your database

4) Select SQL

5) Leave the SQL options as they are

6) Select the box send

7) click on start

8) Go to your new server

9) Start your database programm

10) Click on the left upper button with the SQL tekst on it (next to the home button)

11) In the pop up screen select import file (= second tab)

12) Select the file you previously stored and click on start

13) That it :)



Title: Re: Changing Over Servers
Post by: Abbas Ali on May 14, 2005, 01:09:29 PM
Also edit include/config.inc.php and change the database variables as per the new server.
Title: Re: Changing Over Servers
Post by: kerrsmithws on May 21, 2005, 06:06:10 PM
Quote from: pulz on May 14, 2005, 12:25:27 PM

12) Select the file you previously stored and click on start


Okay im back, which file would that be?
Title: Re: Changing Over Servers
Post by: Abbas Ali on May 22, 2005, 06:33:14 AM
The sql file which you saved from your old server. It means the file containing old database.
Title: Re: Changing Over Servers
Post by: Lennon on June 10, 2005, 11:03:27 PM
Hey!

I'm having the same problem too and I'm with you up until here: 10) Click on the left upper button with the SQL tekst on it (next to the home button)

Myphpadmin isn't set up that way so what do I do next? Thanks!