Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2018
    Location
    Texas
    Posts
    32
    Plugin Contributions
    0

    Default Converting DB to InnoDB from MYISAM

    I am using 1.5.6.c
    I recently had issues with database that caused spoiradic outages and errors.
    When i used Check Databasein server cpanal I got the following errors/display:
    [ltimatep_156c.address_book] OK
    [address_format] 2 clients are using or haven't closed the table properly
    [admin] OK
    [admin_activity_log] 2 clients are using or haven't closed the table properly
    [admin_menus] 37 clients are using or haven't closed the table properly
    etc.......................
    The above is not actual because as soon as I closed the check database page and went back., all table were OK without me having done a repair or other function.

    Anyway after googling the "2 clients are using or haven't closed the table properly" error i found a possible cause and solution.: https://dba.stackexchange.com/questi...-get-corrupted


    MyISAM indexes tend to get corrupted when the server crashes (eg, power failure) or is otherwise rudely terminated (kill -9). You did the 'right' thing by running CHECK and REPAIR.

    The datafile size is a bit worrisome; that is worse than the usual (just index issue). The crash may have happened between "writing" and "flushing", since MyISAM is not careful about syncing.

    Changing to InnoDB is the 'right' thing to do. For each of your tables, do

    ALTER TABLE table_name ENGINE=InnoDB;

    Caution: The disk footprint for your tables will double or triple; check that you have enough disk space.

    InnoDB automatically recovers after power failure and virtually any other crash.

    I also found some mysql query that would convert the MYISAM Db to InnoDB format [will check farther to make sure query is up to date] :

    ALTER TABLE my_table ENGINE = InnoDB;

    MY QUESTION IS: WILL ZENCART WORKWITH INNODB DATABASE AND IF SO. WHAT CHANGES IF ANY NEED TO BE MADE????

  2. #2
    Join Date
    Nov 2007
    Location
    Woodbine, Georgia, United States
    Posts
    4,017
    Plugin Contributions
    61

    Default Re: Converting DB to InnoDB from MYISAM

    There are some tables which running InnoDB will mess up. However, even just switching your bigger or commonly having overhead tables to InnoDB will significantly increase your website speed. I never switch sessions, configuration, configuration_group, paypal_session, db_cache & admin_profiles. You may have other created tables which can give you issues... test test test =)

    ~Melanie
    PRO-Webs, Inc. :: Recent Zen Cart Projects :: Zen Cart SEO – 12 Steps to Success
    **I answer questions in the forum, private messages are NOT answered. You are welcome to contact us via our website for professional engagements.

  3. #3
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Converting DB to InnoDB from MYISAM

    Quote Originally Posted by mprough View Post
    There are some tables which running InnoDB will mess up. However, even just switching your bigger or commonly having overhead tables to InnoDB will significantly increase your website speed. I never switch sessions, configuration, configuration_group, paypal_session, db_cache & admin_profiles. You may have other created tables which can give you issues... test test test =)

    ~Melanie
    I've just tried this on a number of my tables - still testing but doing so seems to have knocked 0.5 sec off the parse time and halved the query time 2 sec down to 1 sec, thank you for suggesting this. This is on my local machine so probably not entirely representative of real-world performance,

    Quote Originally Posted by mprough View Post
    I never switch sessions, configuration, configuration_group, paypal_session, db_cache & admin_profiles...
    BTW: on two sites I've recently upgraded to ZC v1.5.6c, the Sessions table runs InnoDB (all others MyISAM) - maybe a v1.5.6c thing as a v1.5.5f site has it as MyISAM. Mind you I've touched the dbases a lot over the years so no telling what I might have done in the past!
    Last edited by simon1066; 1 Nov 2019 at 06:26 PM.
    Simon

  4. #4
    Join Date
    Feb 2009
    Location
    UK
    Posts
    1,238
    Plugin Contributions
    1

    Default Re: Converting DB to InnoDB from MYISAM

    Quote Originally Posted by simon1066 View Post
    BTW: on two sites I've recently upgraded to ZC v1.5.6c, the Sessions table runs InnoDB (all others MyISAM) - maybe a v1.5.6c thing as a v1.5.5f site has it as MyISAM. Mind you I've touched the dbases a lot over the years so no telling what I might have done in the past!
    Yes, I see that mysql_upgrade_zencart_156.sql did change sessions to InnoDB
    Simon

 

 

Similar Threads

  1. v155 Switching db-tables from MyISAM to InnoDB
    By lat9 in forum General Questions
    Replies: 7
    Last Post: 25 Oct 2019, 12:11 PM
  2. v1301 converting from 1.3.0.1 to 1.5.0
    By eternity575 in forum Upgrading to 1.5.x
    Replies: 12
    Last Post: 4 Apr 2012, 08:54 PM
  3. Converting from freewebshop
    By lrapshop in forum General Questions
    Replies: 3
    Last Post: 25 Jul 2010, 07:43 PM
  4. Converting from osCommerce
    By Rusty105 in forum General Questions
    Replies: 4
    Last Post: 4 Jun 2010, 05:30 PM
  5. Change Storage Engine ( MyISAM to/from InnoDB converter)
    By data_digger in forum All Other Contributions/Addons
    Replies: 11
    Last Post: 17 Dec 2009, 09:56 AM

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