Zen Cart Logo
Forums / General Questions / Use current database with new install of ZC1.5.1

Use current database with new install of ZC1.5.1

Views: 1,225

Results 1 to 5 of 5
21 Jan 2014, 8:28 PM
#1
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Use current database with new install of ZC1.5.1

I want to use my current database with a new install of 1.5.1, so that I can start with all fresh files with no edits. Is there any way to do this? I'm at a loss as to how to accomplish what I want to do. If someone could point me in the right direction, I would appreciate it. Old install and database are version 1.5.1 and the new install will be 1.5.1. Help? Thanks! :)

21 Jan 2014, 8:33 PM
#2
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Use current database with new install of ZC1.5.1

I think I'm overthinking this whole thing. Can I just upload the new files over the old files and be done with it? I was thinking I needed to go through the whole installation process again. If someone can confirm this, I'll upload and be happy. I've done all my test on a separate site already, so I have my few new edits ready on that site.

21 Jan 2014, 10:21 PM
#3
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,094
Plugin Contributions:
56

Re: Use current database with new install of ZC1.5.1

So long as your current database has gone through the Zen Cart v1.5.1 upgrade, you can use that database with a fresh set of Zen Cart v1.5.1 files.

What I'd suggest doing is, assuming that your cart is installed in a subdirectory off your "public_html" directory:

  1. Create a new directory and copy the fresh Zen Cart v1.5.1 file structure into it. This ensures that you don't have any "stragglers".
  2. Rename the admin directory to your admin directory
  3. Rename (or remove) the zc_install directory
  4. Copy /includes/configure.php file from your current installation (it's got the database credentials)
  5. Copy /YOUR_ADMIN/includes/configure.php from your current installation (ditto)
  6. Rename your current installation directory to something like current_directory_name_old
  7. Rename the new directory to current_directory_name (so it matches the directory name present in the existing configure.php files).
    You should be good-to-go!
22 Jan 2014, 2:36 AM
#4
laurelsstitchery avatar

laurelsstitchery

Zen Follower

Join Date:
Jun 2010
Posts:
145
Plugin Contributions:
0

Re: Use current database with new install of ZC1.5.1

This is exactly what I did and it worked perfectly! Thanks so much! :)

lat9:

So long as your current database has gone through the Zen Cart v1.5.1 upgrade, you can use that database with a fresh set of Zen Cart v1.5.1 files.

What I'd suggest doing is, assuming that your cart is installed in a subdirectory off your "public_html" directory:

  1. Create a new directory and copy the fresh Zen Cart v1.5.1 file structure into it. This ensures that you don't have any "stragglers".
  1. Rename the admin directory to your admin directory
  1. Rename (or remove) the zc_install directory
  1. Copy /includes/configure.php file from your current installation (it's got the database credentials)
  1. Copy /YOUR_ADMIN/includes/configure.php from your current installation (ditto)
  1. Rename your current installation directory to something like current_directory_name_old
  1. Rename the new directory to current_directory_name (so it matches the directory name present in the existing configure.php files).

You should be good-to-go!

22 Jan 2014, 1:10 PM
#5
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,094
Plugin Contributions:
56

Re: Use current database with new install of ZC1.5.1

Great! Glad I could help.