Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2010
    Posts
    14
    Plugin Contributions
    0

    Default 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    Is it ok to build a complete 1.5.1 site first with all template changes etc then import old database.
    I assume you need to reinstall sql files for mods once imported and upgraded. Or am I missing something.

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,266
    Plugin Contributions
    3

    Default Re: 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    At the end of the day, the contents and configuration of the database must match the functional code(s) driving the behaviour.

    An additional consideration is that many modules for 1.3.9 have been upgraded to suit 1.5.x.

    Here's what I usually do (it can be different depending on the original config).

    1. Create a CLONE of the existing site (I do my clones on a separate DEV server, far away from the original site. I DO NOT use local setups like Wamp)

    2. On the CLONE (and only on the clone), I UN-INSTALL all modules, both files and DB inserts, when these are evident. (Not all plugins. add-ons affect the dbase.)

    3. Basically, I take the clone back to CORE behaviour.

    4. I note ALL the sql commands to remove plugin additions, because I will need these later.

    5. When I have the COPY (clone) site back to core behaviour, I do an upgrade on it in the standard manner.

    6. I then load current versions (ie: v.1.5) of the plugins. If any plugins that I used in the original site are not yet upgraded to 1.5, I leave them out.

    7. I TEST THE UPGRADED CLONE...

    8. When I am happy that it all works properly, I put the LIVE SITE into maintenance mode. I do this late on a Friday night to not disrupt selling time if possible.

    9. I then copy the original site's database again, load it on to the DEV server, and link it to the now-upgraded clone. In phpMyAdmin, I run the uninstall sql patches for the old plugins.

    10 again in phpMyAdmin I run the NEW sql inserts for new plugins

    11. I FTP the 1.5.1 ZC INSTALL folder back to the Dev server (to the clone's root)

    12. I run zc_install. making sure to select DATABASE UPGRADE ONLY.

    13. I TEST everything again.

    14. I BACKUP the original site again.

    15. I REMOVE the original site and its database

    16. I move the upgraded clone from the DEV server to the LIVE server.

    17. I TEST AGAIN.

    18. When happy, I remove "down for maintenance"
    20 years a Zencart User

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    Quote Originally Posted by schoolboy View Post
    At the end of the day, the contents and configuration of the database must match the functional code(s) driving the behaviour.

    An additional consideration is that many modules for 1.3.9 have been upgraded to suit 1.5.x.

    Here's what I usually do (it can be different depending on the original config).

    1. Create a CLONE of the existing site (I do my clones on a separate DEV server, far away from the original site. I DO NOT use local setups like Wamp)

    2. On the CLONE (and only on the clone), I UN-INSTALL all modules, both files and DB inserts, when these are evident. (Not all plugins. add-ons affect the dbase.)

    3. Basically, I take the clone back to CORE behaviour.

    4. I note ALL the sql commands to remove plugin additions, because I will need these later.

    5. When I have the COPY (clone) site back to core behaviour, I do an upgrade on it in the standard manner.

    6. I then load current versions (ie: v.1.5) of the plugins. If any plugins that I used in the original site are not yet upgraded to 1.5, I leave them out.

    7. I TEST THE UPGRADED CLONE...

    8. When I am happy that it all works properly, I put the LIVE SITE into maintenance mode. I do this late on a Friday night to not disrupt selling time if possible.

    9. I then copy the original site's database again, load it on to the DEV server, and link it to the now-upgraded clone. In phpMyAdmin, I run the uninstall sql patches for the old plugins.

    10 again in phpMyAdmin I run the NEW sql inserts for new plugins

    11. I FTP the 1.5.1 ZC INSTALL folder back to the Dev server (to the clone's root)

    12. I run zc_install. making sure to select DATABASE UPGRADE ONLY.

    13. I TEST everything again.

    14. I BACKUP the original site again.

    15. I REMOVE the original site and its database

    16. I move the upgraded clone from the DEV server to the LIVE server.

    17. I TEST AGAIN.

    18. When happy, I remove "down for maintenance"
    This is EXACTLY how I do it.. Wanted to add I only use a LOCAL server for testing things that MAY be put in use on a client site but I NEVER do client dev on a local server..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    .

    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
    Jul 2009
    Posts
    402
    Plugin Contributions
    0

    Default Re: 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    Hi.
    I have carefully read all what in the link above from DrByte.
    What I would like to do when it comes t the db is exactly the opposite.
    In other words I want to start with a fresh install, in a test folder with a new db named test.
    1. Install in the test version all the plugin mods and hacking I did in the live site and may be also another template.
    2. Import the needed data from the live db to the test db.
    3. Test test test and test again.
    4. Go in maintenance status with the live site.
    5. Import the needed data from the live db to the test db.
    6. Back up the live db and files.
    7. Delete all the live files
    8. Copy all the test site (not the configures files) in the live site.
    9. delete all the tables from the live db
    10. Import all the tables in the live db from the test db.

    It worth to underline that I need to use the italian version because of the VAT and CF fields that are not included neither managed by the original version of zen cart.
    Also the italian version includes by default files and tables managing the multilanguage ezpages function but I have learned how to take it back to original version because this makes the italian version incompatible with the templates free or paid present in the market.
    Now my question is:
    How can i do what in step 2 and 5?
    Do I need to do it table by table? If os were cna i find a list of the tables that I need to import?
    Is there a tool that is able to import the data without incurring in errors like table already exixsts or data already exists?
    I have also read d post telling to use add drop and under Data, choose "Complete Inserts" and "Extended Inserts", but I can not find this in my phpMyadmin version 4.0.10.7. However would this be enough?
    Thanks
    ciao from Italy
    enzo

  6. #6
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

    Default Re: 1.3.9 to 1.5.1 build testsite on 1.5.1 then import old database

    Quote Originally Posted by enzo-ita View Post
    How can i do what in step 2 and 5?
    Do I need to do it table by table?
    Yes and no. You actually need to do it row-by-row. And thus THAT APPROACH SHOULD BE AVOIDED!!!!! It's prone to error, both technical error and human error. And is totally unnecessary.

    It's FAR MORE RELIABLE to use the method I described: http://www.zen-cart.com/entry.php?3-...d-of-upgrading
    .

    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.

 

 

Similar Threads

  1. Keep old site running and build new one
    By cubmanky in forum General Questions
    Replies: 1
    Last Post: 20 Jan 2016, 03:09 AM
  2. Replies: 1
    Last Post: 4 Jan 2013, 06:13 AM
  3. Can I just install 1.3.9e new and then import my 1.38a database?
    By printchic in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 25 Aug 2010, 06:45 PM
  4. New Build Old Database
    By godspeed27 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 6
    Last Post: 1 Mar 2007, 03:31 PM
  5. Still don't know how to build my website offline and then upload to live server?
    By lina0962 in forum Installing on a Windows Server
    Replies: 3
    Last Post: 21 Jun 2006, 12:03 AM

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