Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27
  1. #11
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    Hello again,

    I have tried deleting my new v.1.5.4 database in MySQL and then creating a new one and tried Importing in the old v.1.5.3 database into this v.1.5.4 one using PHPMyAdmin Import. After it completes, I still only get 160 tables and when looking in MySQL Databases in Cpanel to look at the size....my current v.1.5.3 is 232 Mb and my v.1.5.4 is only 200Mb.

    Still stumped as to why it is not importing the entire database.

    Does anyone have any other suggestions?

    Thanks in advance,

    Jeff

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

    Default Re: Trouble updating database

    Quote Originally Posted by NWCE View Post
    Hello again,

    I have tried deleting my new v.1.5.4 database in MySQL and then creating a new one and tried Importing in the old v.1.5.3 database into this v.1.5.4 one using PHPMyAdmin Import. After it completes, I still only get 160 tables and when looking in MySQL Databases in Cpanel to look at the size....my current v.1.5.3 is 232 Mb and my v.1.5.4 is only 200Mb.

    Still stumped as to why it is not importing the entire database.

    Does anyone have any other suggestions?

    Thanks in advance,

    Jeff
    If you export your "new"database, is the size the same as the export of the old database? Might not be the import process, but instead the export process that is changing things.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  3. #13
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    Hi mc12345678,

    Thanks for your reply and suggestion. The export process that I am using is from a Zen Cart plugin Backup My SQL, and I have done a couple today, to insure it wasn't being corrupted during the process.

    The biggest thing I see in my "new" database is the tables only go down to "Paypal" and then no other tables are importing after that, even though when I look at my old database they are all there. I have tried doing a check database in Cpanel, and all items say OK. Not sure why the remaining tables are not being imported in.

    Any ideas?

    Thanks again,

    Jeff

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

    Default Re: Trouble updating database

    Quote Originally Posted by NWCE View Post
    Hi mc12345678,

    Thanks for your reply and suggestion. The export process that I am using is from a Zen Cart plugin Backup My SQL, and I have done a couple today, to insure it wasn't being corrupted during the process.

    The biggest thing I see in my "new" database is the tables only go down to "Paypal" and then no other tables are importing after that, even though when I look at my old database they are all there. I have tried doing a check database in Cpanel, and all items say OK. Not sure why the remaining tables are not being imported in.

    Any ideas?

    Thanks again,

    Jeff
    So, with that in mind, there are a few things possible here. The tables that have not been transferred over, do they start with the same prefix as the tables that are transferred?

    160 tables is a great number of tables more than a default install that even has several other modifications associated...

    The default install has just under 100, so something has added at least 60 tables to your database.

    So in answer to teh question of any ideas, well thinking that the backup program is doing what it is expected to do which would be to backup the database information applicable to your store and that the remaining tables are not so associated because they do not fit the parameters... Just my thought on the matter when using this method of backup and without further information.

    The other part of it, and if I remember correctly is associated with your issue is that perhaps there is a timeout occurring that is killing the process too early. Perhaps could copy the backup file, edit it to remove the first set(s) of tables and try to upload just the remaining tables.
    Last edited by mc12345678; 15 Mar 2015 at 12:38 AM.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #15
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    Thanks again for your reply mc12345678.

    Upon closer examination my tables in my database (current one as well) basically has 3 sets of the same tables. The first set has no prefix to it, and the identical second set of tables has a prefix, and the third set has a different prefix (the one that I associate with my database when filling in the information during zc_install). All of these three sets make up my complete database of 250 tables. Our store is 9 years old, but I have only taken over the upgrading process, etc. over the last 4 years and have always just copied current databases into new when upgrading.

    I have checked and there is information in all of these but it appears that the last set has the up to date information. (i.e. when I look at the customers table, it contains the correct number of entries as compared to my Zen admin panel results, as well as all 2015 data.) The other 2 tables look to only contain some info and dates back to 2007 and some in 2012. I have only checked a couple of tables information to find this out, not all of them.

    So, this is a whole new kettle of fish! Can I simply delete the extra 2 sets of tables? Is it best to delete them from MyPHPAdmin? I would do a database backup, put the site down for maintenance, delete the 2 sets of tables that seem to be not necessary, and then see if my site runs as it should. Is this the best idea?

    Thanks again for your help,
    Jeff
    Last edited by NWCE; 15 Mar 2015 at 01:35 AM.

  6. #16
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    All of these three sets make up my complete database of 250 tables.
    Sorry to edit the last post...there is a second page to my current database when displaying in PHPMyAdmin with an additional 59 tables so a total of 309. My "new" database still only has the one page with 160.

    Jeff

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

    Default Re: Trouble updating database

    So, yes before making database changes, a trusted backup should be made...

    Next,if you have duplicates of table names with the difference only being the prefix (and of course content) then I would suggest deleting the duplicates. Of course need to know which table prefix is your live table prefix.. (DB_PREFIX in includes/configure.php)

    So if the DB_PREFIX is zen_ for your active store, then configuration, zc_configuration, longlist_configuration could all be removed and not affect your current store. Would also suggest looking at the structure of the table(s), to ensure that even though there is a "different" prefix that the table doesn't represent something else that is instead important.

    It's no wonder that the database size is so large, there are something like 4 different stores in it.

    Generally speaking though, shouldn't have to place the store in maintenance mode...if doing things right, then the rest of the world wouldn't even know that there was anything going on in the background.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  8. #18
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    Thanks for your help with this mc12345678. I will try this tomorrow and will post back once done to let you know and hopefully others if they are having the same issue.

    Thanks,

    Jeff

  9. #19
    Join Date
    Feb 2012
    Location
    mostly harmless
    Posts
    1,809
    Plugin Contributions
    8

    Default Re: Trouble updating database

    Most hosting providers place a limit on how long a PHP script (such as phpMyAdmin) can run before the script is foribly terminated. When this happens, data will be only patially imported. By defualt phpMyAdmin when importing has an option to "skip" portions of the import when it detects the amount of time is reaching this limit imposed by the hosting provider.

    The usual fix is to use an alternative tool to import the data (commandline via SSH; Backup MySQL module for Zen Cart uses exec w/ commandline to restore)... Or break the original export into smaller amounts (via phpMyAdmin or another tool), and import each smaller amount one at a time.

    So yes, limiting your export to just the currently in use tables should help!

  10. #20
    Join Date
    Oct 2009
    Posts
    440
    Plugin Contributions
    0

    Default Re: Trouble updating database

    Hi lhungil,

    Thanks for this info on the limits. I appreciate it! I did not know this, and will try your suggestions. Do you know how to import the database into the new v.1.5.4 using the Zen Cart Backup MySQL tool as I have it installed and would love to be able to use it to import my database as I then for sure won't run into the timeouts.

    Thanks again,
    Jeff

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. v139h 1.3.9h to 1.5.1 error on updating database
    By pietpetoors in forum Upgrading to 1.5.x
    Replies: 4
    Last Post: 2 Oct 2012, 04:19 PM
  2. Updating database problems
    By pb4 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 13 Oct 2009, 04:44 PM
  3. updating database
    By Neemisha in forum Basic Configuration
    Replies: 4
    Last Post: 3 Oct 2007, 02:58 PM
  4. How do I avoid corruption when updating database? Only allowed one database.
    By kevin_a in forum Upgrading from 1.3.x to 1.3.9
    Replies: 0
    Last Post: 9 May 2007, 07:18 AM
  5. Error updating database
    By DaveS in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 1 Jan 2007, 01:07 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