forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 install => Topic started by: CrazyKZ on March 25, 2006, 07:39:52 am

Title: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 07:39:52 am
I had to change servers and am now with LunarPages. They provide a quick install of CopperMine.  I had CM running before. I let Lunar do an install of CM automatically.  I still have a full backup though.

What files can I copy over or mod to us my data again?  Lunar installed v1.4.2

Lunar created a whole new database.  Can I import into that one or should I redirect it to my database (wherever that is)?

--KZ
Title: Re: Changed servers question...
Post by: Stramm on March 25, 2006, 08:32:38 am
you need to upload your albums dir, you need to import your sql dump... then you're pretty much done. Eventually you have to run update.php and you should upgrade to 1.4.4
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 04:18:06 pm
The server had a previous version that it installs (using Fantastico in cPanel), so I deleted it and did a new install and created a new db, uploaded the files, CHMD, ran install, now it's saying that it can't find the database I created, but I've checked it several times.  What now?

...and yes, I did add user and pw to the db.

--KZ
Title: Re: Changed servers question...
Post by: Stramm on March 25, 2006, 04:33:01 pm
include/config.inc.php ... add your new db settings there
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 04:44:48 pm
They are correct. Still can't find db.  :(

--KZ
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 05:15:05 pm
...I even just now did a full ftp upload again thinking that something might have been corrupted.

Attached is the screen capture of the db area.

Still no luck.

--KZ
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 05:47:13 pm
OK, call me stupid.  I just saw the "add user to db" option.  I was creating the user, but didn't add it to the db.  Doh!

Now that it's running, in order to get my old data installed, what should I do?
you need to upload your albums dir, you need to import your sql dump... then you're pretty much done. Eventually you have to run update.php and you should upgrade to 1.4.4
What do you mean by "importing your sql dump"?
Will I still have the login users from before? Where is that stored?

--KZ
Title: Re: Changed servers question...
Post by: Joachim Müller on March 25, 2006, 06:45:58 pm
you must have created a backup of your database entries on the old server (this is what is being called a "dump"). If you haven't done so, create a dump now on your old server. If you can't access it any more, you're lost and will have to start with the empty install you currently have. Take a look at http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#BackupDatabase
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 07:13:57 pm
Hmmm, I wish I had know that before changing servers first.  :(
Anyway I have contacted the webhost company to see what they can do; we have not cancelled the account yet at all.

I don't see in my database area where to import the dump file, I only see an import.
The instructions state: "restore the mySQL table by running the queries of the dump files you created in step 2"
I went to my db and saw the queries area, but not sure what to do next (assuming that I can get the dump file still).

--KZ
Title: Re: Changed servers question...
Post by: Joachim Müller on March 25, 2006, 07:19:18 pm
did you read the faq section I refered to?
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 07:21:45 pm
I got into the old db :)
Just to make sure I'm exporting correctly...Which ones of these do I check?  I know I am not to check "add drop table".

Title: Re: Changed servers question...
Post by: Joachim Müller on March 25, 2006, 07:33:00 pm
the options should be fine, but you have to make sure to highlight the coppermine tables that need to be backed up.
Title: Re: Changed servers question...
Post by: CrazyKZ on March 25, 2006, 11:36:35 pm
OK...I've got my .sql file. I'm confused as to what to do next.

What does it mean:
"restore the mySQL table by running the queries of the dump files you created in step 2"

Do I go to the "Queries" area in the new db area?  I don't see anywhere to run or import a file.

--Ken
Title: Re: Changed servers question...
Post by: Joachim Müller on March 26, 2006, 02:22:30 am
use phpMyAdmin on your new site. Refer to the phpMyAdmin docs. Use the "sql" tab
Title: Re: Changed servers question...
Post by: CrazyKZ on March 26, 2006, 03:20:41 am
OK, that's where I'm at.  See attached image with how I started after installing the dump file.
BTW, the documentation is not real helpful for this one small task.  All I'm trying to do is get my gallery back up and running.  :(

But then it returns with the following:

SQL query:

`user_id` , `user_group` , `user_active` , `user_name` , `user_password` , `user_lastvisit` , `user_regdate` , `user_group_list` , `user_email` , `user_profile1` , `user_profile2` , `user_profile3` , `user_profile4` , `user_profile5` , `user_profile6` , `user_actkey` SELECT *
FROM `cpg143_users`
WHERE 1
LIMIT 0 , 30
MySQL said: 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'user_id` , `user_group` , `user_active` , `user_name` , `user_password` , `user_' at line 1
Title: Re: Changed servers question...
Post by: Joachim Müller on March 26, 2006, 09:50:34 am
you're suppossed to paste your backup into the field, not click into the column on the right.
Title: Re: Changed servers question...
Post by: CrazyKZ on March 26, 2006, 10:13:55 pm
I see.  OK, I've deleted the db and started over...When I start with a fresh db and paste the dump, it loads sussessfully.  However, when I then go to the gallery page it simply says:  "Fatal error :", but doesn't even show any errors of why.

However, I ran the "update.php" and IT NOW WORKS.  PHew! 

Thanks for your help!

--KZ