Results 1 to 4 of 4
  1. #1
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Database Only Upgrade and configure.php

    The Zen Cart 1.5.8a download contains two dist-configure.php files but no configure.php like an instance installed with the installer.

    The Database-Only Upgrade Instructions ask users to "change the two configure.php files to utilize the new directory and database." I think this is so that the installer does not over-write the existing database with a new empty database.

    Should we import a full includes/configure.php and ADMIN/includes/configure.php from a fresh install then edit it to point to the imported database? Or one with just the lines about the database:

    /**
    * The following settings define your database connection.
    * These must be the SAME as you're using in your non-admin copy of configure.php
    */
    define('DB_TYPE', 'mysql'); // always 'mysql'
    define('DB_PREFIX', ''); // prefix for database table names -- preferred to be left empty
    define('DB_CHARSET', 'utf8mb4'); // 'utf8mb4' or older 'utf8' / 'latin1' are most common
    define('DB_SERVER', 'localhost'); // address of your db server
    define('DB_SERVER_USERNAME', '');
    define('DB_SERVER_PASSWORD', '');
    define('DB_DATABASE', '');

    All the best for the holidays.

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,801
    Plugin Contributions
    124

    Default Re: Database Only Upgrade and configure.php

    > Should we import a full includes/configure.php and ADMIN/includes/configure.php from a fresh install then edit it to point to the imported database?

    Correct. This is what you want to do. And if you're running PHP 8.1+, remember to do the fix for U_ILLEGAL_ARGUMENT_ERROR:

    https://www.zen-cart.com/showthread....16#post1397616
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Database Only Upgrade and configure.php

    Good point, I forgot to make that change to the configure.php files so the clean install from the installer wizard threw that exact same error like on the install which I play around with.

  4. #4
    Join Date
    May 2023
    Location
    Canada
    Posts
    50
    Plugin Contributions
    0

    Default Re: Database Only Upgrade and configure.php

    I extracted the current zen cart download in a new folder on my server.

    I uploaded the includes/configure.php and admin/includes/configure.php pointing to the old database. I did not delete the two dist-configure.php files

    When I loaded STORE_URL/zc_install I saw an option to Upgrade rather than Clean Install and I did so

    The upgrade was quick and successful. It asks me to move my admin folder to the SOOPER SEKRET STRING from the original site so I will go do that then follow the next step in the Database Only Upgrade documentation.

 

 

Similar Threads

  1. v151 Database upgrade only ..zc install has static buttons and are not permitting the upgr
    By johnnycascio in forum Installing on a Linux/Unix Server
    Replies: 11
    Last Post: 26 Dec 2013, 05:11 AM
  2. Replies: 9
    Last Post: 1 Sep 2012, 03:13 AM
  3. upgrade of database, use of configure.php
    By torvista in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 9 Sep 2011, 09:13 PM
  4. Tool to synchronize database and configure.php
    By jayson.gurney in forum General Questions
    Replies: 0
    Last Post: 24 May 2006, 01:59 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR