Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Remove DB Prefix

    I am doing an upgrade 'trial' from 1.5.1 to 1.5.5e and have a problem with copying old database into the new install - old database has a 'prefix' so tables with prefix are not loading into correct tables in new install.

    During install the process didn't ask if DB should have prefix (as it does in 1.5.1 install for example) unless I missed that step - so I now have a database with duplicate entries, with and without prefix so I assume I need to either 'merge' tables in new db or using the copy of the old db delete the prefix then load that modified db into the new install.

    Problem is if my assumptions are correct I have no idea how to merge tables if it can be done at all - or how to delete the prefix from the copy??

    cheers,
    Mike

  2. #2
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Remove DB Prefix for 1.5.5e Upgrade

    Umm... so many options to choose from by which to possibly explain all of the pitfalls, caveats, and possible work-a-rounds...

    What's wrong with "starting over" with the database aspect and stepping through the upgrade as suggested through say this FAQ: http://www.zen-cart.com/entry.php?3-...d-of-upgrading

    Merging of database records.... Yes can be done, some things quickly, others require matching up records from one or more tables which may require matching with again one or more tables, etc... there are ways to salvage specific data in a way that is database independent, but as always, the post for assistance should be more specific to get more direct assistance...

    Besides, as you said this is a trial upgrade... It will help you most if you do now what you plan to do later and even better if it is something consistent, describable, and/or even published. Go out on a limb with something wild and crazy and you're more likely to require specialized unique support to correct the issue. :/

    Just sayin'.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Remove DB Prefix for 1.5.5e Upgrade

    Quote Originally Posted by mc12345678 View Post
    Umm... so many options to choose from by which to possibly explain all of the pitfalls, caveats, and possible work-a-rounds...

    What's wrong with "starting over" with the database aspect and stepping through the upgrade as suggested through say this FAQ: http://www.zen-cart.com/entry.php?3-...d-of-upgrading

    Merging of database records.... Yes can be done, some things quickly, others require matching up records from one or more tables which may require matching with again one or more tables, etc... there are ways to salvage specific data in a way that is database independent, but as always, the post for assistance should be more specific to get more direct assistance...

    Besides, as you said this is a trial upgrade... It will help you most if you do now what you plan to do later and even better if it is something consistent, describable, and/or even published. Go out on a limb with something wild and crazy and you're more likely to require specialized unique support to correct the issue. :/

    Just sayin'.
    Thanks MC - the problem with the upgrade as I see it was twofold;
    1. install didn't ask to nominate a db prefix
    2. running zc_install after uploading old db into new did not give 'upgrade database only' option but simply 'clean install'

    I assume that both of these should have occurred?

    However I will start again (again) - however if install doesn't ask for prefix then I am back to square one.

    cheers, Mike

    p.s. found this so figured I could delete prefix, export, upload to new install and then reload copy with prefix back to old db;
    https://www.zen-cart.com/showthread....atabase+prefix
    If your host provides phpMyAdmin, you can scroll to the bottom of the database, select all the tables and have it change the With selected to Replace table prefix.

    BACKUP BACKUP BACKUP

    You'll enter the current prefix in the From box (Zen_ or zen_) and leave the To box empty. That will remove the prefix from all tables.

    Not sure if it is case sensitive.
    Last edited by shags38; 4 Jul 2017 at 01:52 AM.

  4. #4
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Remove DB Prefix for 1.5.5e Upgrade

    MC - I followed the process at bottom of last post and data is now in new install but I get message >> Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels.

    cheers,
    Mike

  5. #5
    Join Date
    Jul 2012
    Posts
    16,799
    Plugin Contributions
    17

    Default Re: Remove DB Prefix for 1.5.5e Upgrade

    Quote Originally Posted by shags38 View Post
    MC - I followed the process at bottom of last post and data is now in new install but I get message >> Your database appears to need patching to a higher level. See Tools->Server Information to review patch levels.

    cheers,
    Mike
    And following the instructions of the previous post, the zc_install folder gets uploaded again and run. The message presented indicates that the new fileset is trying to access an old database which means that at least the store side of the configure.php is pointing to the same database content (hopefully a backup copy and not the live store) as your live site.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  6. #6
    Join Date
    Jan 2011
    Location
    Adelaide, Australia
    Posts
    1,670
    Plugin Contributions
    1

    Default Re: Remove DB Prefix for 1.5.5e Upgrade

    Quote Originally Posted by mc12345678 View Post
    And following the instructions of the previous post, the zc_install folder gets uploaded again and run. The message presented indicates that the new fileset is trying to access an old database which means that at least the store side of the configure.php is pointing to the same database content (hopefully a backup copy and not the live store) as your live site.
    Yeppers - got it - ran install again and at least that side of it is ok now.

    So having sorted out how to modify the database I am now going to start afresh with the install instructions open

    thanks again, Mike

 

 

Similar Threads

  1. can I remove zen_ prefix from all tables?
    By warroyo90 in forum General Questions
    Replies: 7
    Last Post: 27 Jul 2012, 09:24 PM
  2. How to remove or add the prefix in subcategory text?
    By ttmb33 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 May 2009, 03:34 AM
  3. How remove prefix subcategories ?
    By public2009 in forum General Questions
    Replies: 2
    Last Post: 20 May 2009, 06:36 PM
  4. Problem during upgrade (after renaming tables to remove zen_ prefix)
    By rainthebat in forum Upgrading from 1.3.x to 1.3.9
    Replies: 5
    Last Post: 11 Dec 2007, 05:23 PM
  5. Prefix to ID No.
    By beatnik in forum General Questions
    Replies: 10
    Last Post: 18 Jul 2007, 07:27 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