Forums / Installing on a Linux/Unix Server / Importing Database into new Installation

Importing Database into new Installation

Locked

Views: 8,804

Results 21 to 28 of 28
This thread is locked. New replies are disabled.
20 Feb 2008, 4:00 PM
#21
drbyte avatar

drbyte

Sensei

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

Importing Database into new Installation

heavenlynights:

... wondering ... if i can import a database which is for zen version 1.3.7.1 into a database for a fresh install of zen version 1.3.8a?

If this is possible, I am guessing that i would have to re-upload the zc_install directory for version 1.3.8a and then run the install and choose update database.

Could someone please be kind enough to either confirm my thoughs or correct me if I am wrong.Yes, that is correct.

.
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.

20 Feb 2008, 7:51 PM
#22
heavenlynights avatar

heavenlynights

Zen Follower

Join Date:
Jan 2006
Location:
Australia
Posts:
303
Plugin Contributions:
0

Re: Importing Database into new Installation

Thanks Doc for confirmation

Cheers Heavenlynights
http://www.heavenlynightslingerie.com.au
Warning: Adult Content - Zen 1.3.8a

14 Nov 2008, 2:59 AM
#23
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: Importing Database into new Installation

Can I open this again?

I have setup and installed 1.3.8a on a new server, and followed the procedure above by deleting the database of the clean install, creating a new one of the same name, and importing a database from an old install on another server - the old version being, I think, 1.3.6.

So I run the installer and get to the point where I can run 'upgrade database'. When I do so, I get this:

in:
[select admin_id, admin_name, admin_pass from admin where admin_name = 'my zc_admin username']

I have the same admin user in the old database as in the new setup.

The upgrade does not proceed, so far as I can tell. I have run the fix_cache_key.

What am I missing?

14 Nov 2008, 7:00 AM
#24
drbyte avatar

drbyte

Sensei

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

Re: Importing Database into new Installation

If you're going to move from one server to another, be sure you're using the SAME version of Zen Cart on both sides.

If you need to do an upgrade, do that AFTER you've got the OLD version working perfectly on the new server first.

https://www.zen-cart.com/tutorials/index.php?article=100

.
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.

14 Nov 2008, 10:13 AM
#25
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: Importing Database into new Installation

That would be a difficult one for me, as I'm moving the site to a server which runs PHP/mySQL5. On which zencart 1.3.6 won't run?

14 Nov 2008, 10:45 AM
#26
drbyte avatar

drbyte

Sensei

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

Re: Importing Database into new Installation

Well, you could do the whole upgrade on the old server first, and then do the move afterwards.

The only big caveat for v1.3.6 with respect to PHP 5 is the /includes/functions/sessions.php file which needs a small update for PHP5 compatibility. If I remember correctly, you can use the v1.3.8 version of that file to bridge that gap.

.
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.

14 Nov 2008, 11:03 AM
#27
godt avatar

godt

Zen Follower

Join Date:
Mar 2006
Location:
Melbourne, Australia
Posts:
378
Plugin Contributions:
0

Re: Importing Database into new Installation

Thing is, my client isn't happy with the idea of the site being down. Path of least resistance, I'm afraid. But if I installed 1.3.6 with the 1.3.8 sessions.pph, is it your feeling I'd get away with it?

I appreciate your assistance. been playing with this one for quite a while.

14 Nov 2008, 11:12 AM
#28
drbyte avatar

drbyte

Sensei

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

Re: Importing Database into new Installation

godt:

Thing is, my client isn't happy with the idea of the site being down.Naturally.
Why are they moving hosts then?

godt:

But if I installed 1.3.6 with the 1.3.8 sessions.pph, is it your feeling I'd get away with it?
That's a bandage only. Intended just for getting rid of PHP5 errors specifically. It doesn't fix the fact that the MySQL 5 support in v1.3.8 is missing in v1.3.6 ... and that v1.3.6 is officially no longer supported.

.
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.