Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / Installing on a Linux/Unix Server / Help restoring database - nothing seems to work

Help restoring database - nothing seems to work

Locked

Started by techbot on 1 Jun 2006, 5:24 AM · Views: 4,255

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
1 Jun 2006, 5:24 AM
#1
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Help restoring database - nothing seems to work

OK..i've been doing this for hours now. I've done a fresh install of Zencart 1.3.01. I backed up my database through phpmyadmin on my old site. I've gone through the restore bit. It looked like it went in, but the site still shows a fresh install. I Put my configure.php files from my old site in there, even changed the names of the database and the SQL server info. All that did was make it to where when I refreshed my site, it went to a 404 error saying zc_install could not be found. Of course it can't ... i deleted it after the fresh install was done!

No matter what I do, it goes back to that! I'm trying to move this entire site before June 10th or this host is gonna charge me another month.

1 Jun 2006, 5:41 AM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Help restoring database - nothing seems to work

Need more information.

you did a backup. ... assuming from the old host
you did "the restore bit" .... ? ... what exactly did you do here?
"when I refreshed the site" .... which site? what URL? what's the URL of the "old" site?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Jun 2006, 1:36 PM
#3
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

Sorry :) Guess its not good to assume anything..

you did a backup. ... assuming from the old host
I backed up my database through phpmyadmin on my old site. I've gone through the restore bit.
I did my restore through phpmyadmin on the new site at http://c11.servage.net/~sc20038-PLDS/store
(this is my temp url while I build the site back up). the old site - and i feel i have to give warning - is an adult fetish site at trampledelights.com/store

1 Jun 2006, 4:27 PM
#4
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

Your site is hosted on an Apache server - not Windows.

Vger

1 Jun 2006, 4:56 PM
#5
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

Vger:

Your site is hosted on an Apache server - not Windows.

Vger

AK! good god. Sorry about that guys. Can someone move this to the Linux section?

1 Jun 2006, 4:59 PM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

moved to correct forum

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

1 Jun 2006, 7:00 PM
#7
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

now..in looking through the sql file, everything has a zen_ prefix...whereas my new database does not...can i simply remove that prefix in the sql file?

1 Jun 2006, 7:36 PM
#8
jfd avatar

jfd

New Zenner

Join Date:
May 2006
Posts:
18
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

techbot:

now..in looking through the sql file, everything has a zen_ prefix...whereas my new database does not...can i simply remove that prefix in the sql file?

That or you could re-install and put in the "zen_" prefix on the db settings page. Of course you should be able to change this in the config file(s) as well.

1 Jun 2006, 7:52 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Help restoring database - nothing seems to work

techbot:

now..in looking through the sql file, everything has a zen_ prefix...whereas my new database does not...can i simply remove that prefix in the sql file?

Since you're trying to restore your old database, the easiest way is to set your configure.php files to use the same table prefixes as the old site had.

Changing the prefixes can be done later, after you have your data up and running.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

1 Jun 2006, 7:59 PM
#10
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

My main issue right now is that it keeps trying to read the zc_install folder...when I deleted it after install.

going to http://c11.servage.net/~sc20038-PLDS/store/

pops up a 404 error saying that > The requested URL /~sc20038-PLDS/store/zc_install/index.php was not found on this server.

1 Jun 2006, 9:31 PM
#11
techbot avatar

techbot

Zen Follower

Join Date:
May 2005
Posts:
104
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

DrByte:

Since you're trying to restore your old database, the easiest way is to set your configure.php files to use the same table prefixes as the old site had.

Changing the prefixes can be done later, after you have your data up and running.

OK...i just reinstalled. Here is my configure.php database section

// define our database connection
define('DB_TYPE', 'mysql');
define('DB_PREFIX', 'zen_');
define('DB_SERVER', 'mysql12.servage.net'); // eg, localhost - should not be empty
define('DB_SERVER_USERNAME', 'xxxxxxx');
define('DB_SERVER_PASSWORD', 'xxxxxxx');
define('DB_DATABASE', 'trampledelight2');
define('USE_PCONNECT', 'false'); // use persistent connections?
define('STORE_SESSIONS', 'db'); // leave empty '' for default handler or set to 'db'

my old database has the zen_ prefix, whereas my new database does not. I don't see anywhere in the new hosts database creation area to put prefixes or i would have done that

1 Jun 2006, 10:56 PM
#12
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Help restoring database - nothing seems to work

techbot:

OK...i just reinstalled. Here is my configure.php database section

my old database has the zen_ prefix, whereas my new database does not. I don't see anywhere in the new hosts database creation area to put prefixes or i would have done that

Zen Cart adds the table-prefixes during installation of a new site. So, if your old database has the prefixes, then you accepted the suggested prefix of zen_ during installation (it was a default during versions 1.2.0 thru 1.2.4).

So, if you just did a fresh install, and entered "zen_" for a table-prefix, but when you check the database, you don't have any tables using "zen_" as their name, then you've got the wrong database. Scroll all the way down the list to locate the "zen_" entries, since Z is kinda late in the alphabet :)

If you have both (with and without prefixes), you can delete the set without the prefix if you like.

In fact, if you have your new install working, and it's using the zen_ tables, then you can delete all the tables, then re-import your old database contents.
Then test.
Then upgrade the database if needed.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jun 2006, 1:43 PM
#13
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Re: Help restoring database - nothing seems to work

You'll most likely get that error if your two configure.php files aren't set up correctly - in which case the install folder is looked for.

Vger