Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default importing data base error and general question about zen

    Hello. I'm finally getting around to upgrading from 1.57c to 1.58a and created test site and importing current data base into a test database, have done this before through the years without issue but this year an issue. Says SQL error "#1050 - Table 'address_book' already exists"
    Lots of problems this time around, not the usual clear sailing. the PHP was upped on the site by the hosting company and had to move it back down for zc install to recreate the 1.57c test site so that i can upgrade to a test version...but have to move it back up for processing, then move it back down to use the zc_install. I think all these issues is that the hosting company is regulating everything to go to php 8 but the cart is not working optimally on 8 but 7.4.

    Also, can someone better explain to me, or send me a link on how zen cart works.. as a company. I mean, are there volunteers? How do these people get paid, etc. Who are these people updating code on here, running tests, answering questions? Volunteers or paid? is it just goodwill?Been using this for years and years...figure i might as well ask.

    Thanks
    Name:  ask zen.jpg
Views: 433
Size:  15.6 KB

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,498
    Plugin Contributions
    88

    Default Re: importing data base error and general question about zen

    See the Zen Cart docs regarding upgrading: https://docs.zen-cart.com/user/upgrading/. It looks like you were trying to do a database-only upgrade, but via phpMyAdmin.

    Performing the upgrade in that manner is discouraged, for the issues you've identified.

    We're all unpaid volunteers on the forum, keeping the code updated via its GitHub repository: https://github.com/zencart/zencart.

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: importing data base error and general question about zen

    > How do these people get paid, etc. Who are these people updating code on here, running tests, answering questions?

    The people who do most of the coding are also running businesses supporting and doing custom coding for Zen Cart installations.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: importing data base error and general question about zen

    In addition to the notes above about the many unpaid volunteers who generously offer support and help write code, there are still very real costs associated with getting Zen Cart into your hands for free.
    When you donate to Zen Cart (see https://docs.zen-cart.com/user/about_us/donate/ or sponsor via Github), you help cover the costs of hosting services and developer resources that allow us to keep offering the Zen Cart application for free. There are several servers that we have to run in order to host this forum, manage submission and download of plugins, do quality-control, send email notifications, etc, and several 3rd party services we engage to provide layers of protection to deter hackers and spammers, and so on.
    Every donation you make to Zen Cart, whether as a monthly contribution, or a single one-time donation, helps us keep the code free.
    .

    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.

  5. #5
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default Re: importing data base error and general question about zen

    It's why i asked. I don't take things free without doing something. I don't know if it's appropriate to ask this question for not, so i'll ask it and you're free to ignore it. I'm aware the prices fluctuate year to year and surprises always come up but generally speaking, what does it cost to keep this project going for a year? All expenses included. Say for 2023?

  6. #6
    Join Date
    Dec 2008
    Location
    USA, North East
    Posts
    212
    Plugin Contributions
    0

    Default Re: importing data base error and general question about zen

    I created a subfolder, installed the Zen i currently use on our live site, 1.57C. then through php admin i imported a copy of the live database into the test data base. that's where it failed. I'm basically recreated the current site in a test folder to attempt the upgrade to 1.58 so i can get the PHP issue out of my hair!

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,703
    Plugin Contributions
    123

    Default Re: importing data base error and general question about zen

    > through php admin i imported a copy of the live database into the test data base.

    You can import a copy of your current live database, but the db you import into must be empty - no tables, nothing.
    It looked like you were trying to import an existing database into a database that already had tables.
    That Software Guy. My Store: Zen Cart Modifications
    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.

  8. #8
    Join Date
    Apr 2008
    Location
    Qld, Australia
    Posts
    257
    Plugin Contributions
    6

    Default Re: importing data base error and general question about zen

    Here are some notes that may help. These are the steps I take.

    1. I create the database in PHPMyAdmin.
    2. Use zc_install to create the tables.
    3. Import the unzipped old database file using the command line or if you use Laragon on Windows instead of Xamp try HeidiSQL. ( I gave up importing with PHPMyadmin a long time ago as it is slow and problematic.) See below for the export settings required.
    4. Run zc_install again to upgrade the database structure.



    I export the databases using PHPMyadmin with the following settings:
    Custom:
    select all tables
    save output to a file
    filename template @DATABASE@_%Y-%m-%d_%T
    file character set utf-8
    compression gzipped
    display comments
    enclose export in a transaction
    add drop table
    auto increment value
    add create procedure
    add create trigger
    enclose table and column names with backquotes
    syntax to use = both
    dump binary columns in hexadecimal
    dump timestamp columns in UTC

    These settings allow me to overwrite the tables on import each time.
    OldNGrey
    ZC158a PHP 8.2.15
    MySQL 10.6.16-MariaDB

 

 

Similar Threads

  1. v157 General question about PayPal plugins and SCA/PSD2 Europe UK
    By ianhg in forum PayPal Express Checkout support
    Replies: 4
    Last Post: 13 May 2021, 12:09 PM
  2. Importing New Template... What Data Base Issues Will I Have?
    By jeffis in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 31 Mar 2011, 11:06 AM
  3. General question about Zen Cart
    By adjohnson in forum Basic Configuration
    Replies: 6
    Last Post: 28 Jun 2009, 05:37 PM
  4. Data Base errors after moving WAMP and Zen to another P.C for development
    By tidy in forum Installing on a Windows Server
    Replies: 8
    Last Post: 1 Jun 2009, 01:43 AM
  5. General Question About CSS And Scripts
    By CoolCarPartsOnline in forum General Questions
    Replies: 0
    Last Post: 11 May 2009, 09:30 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