Page 1 of 3 123 LastLast
Results 1 to 10 of 25
  1. #1
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    help question Upgrading database not working (1.3.9 to 1.5.1)

    I'm trying to rebuild/upgrade my zencart site and have been having some trouble. I tried the export old > import to new DB step, but my export function in phpmyadmin keeps adding a create db command (even when I leave that box unchecked) and I'm not comfortable with sql enough to go in and erase the command. Is that all I do? Erase those two lines of code?

    In lieu of this, I saw the copy database function and decided to try that. They are on the same server so why wouldn't that work? I tried it, and from what I can see, it went well. I changed my config files and went to do the db upgrade step, and it doesn't look like it worked. My shop is empty. No customers, products...anything went over, even though the database is there, full and can be connected to for the upgrade. I got a ton of messages during the upgrade...mostly that steps were skipped because 'xyz already exists.' In some cases it was 'xyz doesn't exist.' I tried the process of upgrading several times. I feel frustrated and really stupid. Any help/thoughts would be greatly appreciated.

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

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    So thing is here, which database is associated with which version of code? It may be that the old version ofcode is trying to access the new version of the database or the other way around... The messages you saw about the database steps sound typical. If however, you got an error.. Type message that is another story.

    If you don't mind navigating around a few places, you would want to be sure that the store files you are accessing are the most up-to-date (1.5.1) and that the includes/configure.php file for that set of files is pointed at the database that has been upgraded...

    Okay, and to add to that it may be wise to clear the cache of your browser... Just in case if not already done.

    Also may want to check the logs directory (area where error messages are now stored in 1.5.1)
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #3
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    I will take a look at the logs directory.

    This is a short version of the steps I did, hopefully this makes things a little more clear:
    Copied old 1.3.9 DB to brand new DB.
    Set up New 1.5.1 Store. (This still works fine if I point the config files back to the DB that it was installed with.)
    Changed config files of New Store to point to New DB with copied 1.3.9 Info. (double checked all my settings.)
    Went to zc_install/index.php and stepped through to the Upgrade process for the DB. Got pink and yellow messages, for 'skipped' items in the upgrade process. No fatal errors.
    Changed permissions on config files, changed my admin back and deleted zc_install folder.
    Logged into New Store with Supposedly Upgraded DB. Nothing is there, no products, no customers, nothing. Store works fine it's just empty.

  4. #4
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    And if use myphpadmin to look at the upgraded database, the data is there? Wondering if the database collation is the issue with probably using latin related database "settings" as compared to the current utf-8 data. There is a pluginby dr.byte that does that update/conversion. But if the database is empty that is something different entirely.

    Btw, just snagged this from one of dr.byte's recent post. This is the way he does things: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    Yup. The data is there and so is the structure. After I ran the upgrade I checked again and there were 4 things added to the new DB. So it looks like this: OldDB (190) and NewDB (194). The tables are all there.

    Dr Byte's guide is pretty much exactly what I did. My old site is still live and I've done all of this on a temp site.

  6. #6
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    Quote Originally Posted by lafhaha View Post
    Yup. The data is there and so is the structure. After I ran the upgrade I checked again and there were 4 things added to the new DB. So it looks like this: OldDB (190) and NewDB (194). The tables are all there.

    Dr Byte's guide is pretty much exactly what I did. My old site is still live and I've done all of this on a temp site.
    Configure.php files show the same table prefix as populated in the database?
    Collation of the fields in the database?
    http://www.zen-cart.com/downloads.php?do=file&id=1318
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  7. #7
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    Quote Originally Posted by mc12345678 View Post
    Configure.php files show the same table prefix as populated in the database?
    Collation of the fields in the database?
    http://www.zen-cart.com/downloads.php?do=file&id=1318
    Yes, there was no prefix before and there's no prefix now.

    They are all UTF-8.

    Here are some screen caps of the old and new DB's in phpmyadmin:
    New DB (1.5.1):
    Click image for larger version. 

Name:	NEWDB_zpsda301357.jpg 
Views:	53 
Size:	36.7 KB 
ID:	14604

    Old DB (1.3.9)
    Click image for larger version. 

Name:	oldDB2_zps28b823af.jpg 
Views:	65 
Size:	30.2 KB 
ID:	14605

  8. #8
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    Hadn't asked yet, but what was the method of establishing the new files? Where did they come from? Said that pretty much followed that procedure, what step(s) were omitted or altered and how?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  9. #9
    Join Date
    Apr 2010
    Posts
    22
    Plugin Contributions
    0

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    First of all, thank you so much for your time and helping me try and sort this out. I really appreciate it. :) I'm not quite sure if this is what you're asking for, but here are the steps with the sources for all the files I used and info.

    The new shop was established through an automatic installer on my webhost. It installed version 1.5.1.
    Completed fresh installation of 1.5.1, deleted zc_install and renamed my admin folder.
    I worked on this fresh install for a while setting up my theme and getting the hang of the new version. When I was ready to merge the live shop info, this is what I did:

    I went into phpmyadmin, made a new DB, and copied the Old DB over through phpmyadmin.
    I used the 'copy database' operation as I could not get the export Old DB > import into New DB step to work.
    Downloaded a fresh 1.5.1 zip because I didn't still have the original zc_install folder.
    Uploaded zc_install to the New Shop.
    Changed DB info on the 2 config files to the new DB and uploaded them.
    Changed permissions on the config files.
    Changed the name of my admin folder back to /admin so the update would be able to find stuff.
    Went to zc_install/index.php and ran the upgrader.
    the first time through, it automatically ticked the upgrades it was going to do. from 1.3.9>1.5.1.
    Got the 'Skipped' messages.
    Ugrade complete.
    Deleted zc_install, renamed admin, logged in and that's where I am now.

  10. #10
    Join Date
    Jul 2012
    Posts
    16,817
    Plugin Contributions
    17

    Default Re: Upgrading database not working (1.3.9 to 1.5.1)

    No problem, so able to use your old admin password to login to the admin side where no catalog data appears to show?

    In the grand scheme of things, the version of 1.5.1 placed. On the server really should be the rest of the files that were with the zc_install folder. Could do a couple of things (take different approaches) to identify what the issue is, if that knowledge would help, but could compare the files of each, delete from the new install anything thatis not in the ZC default, then overwrite the files with the ZC default.

    I'm wondering also, what plugins were previously installed? The template right now, it is the ZC original default yes? Not modified?
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. After upgrading database site not displaying correctly
    By spawnie69 in forum Upgrading to 1.5.x
    Replies: 19
    Last Post: 12 Feb 2016, 02:41 AM
  2. v153 Upgrading PHP, zc installation not working
    By Ormhaugen in forum Installing on a Linux/Unix Server
    Replies: 5
    Last Post: 23 Nov 2015, 03:45 PM
  3. Upgrading -- admin not working
    By azwli in forum Upgrading from 1.3.x to 1.3.9
    Replies: 14
    Last Post: 11 Apr 2011, 11:44 PM
  4. Upgrading database makes scrolling what's new box stop working
    By digidiva-kathy in forum Upgrading from 1.3.x to 1.3.9
    Replies: 8
    Last Post: 6 Feb 2008, 06:12 PM

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