Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Innodb Question

Discussion in 'Database Discussion' started by mahdy_sharifi, Jul 1, 2013.

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Feb 26, 2012
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :

    sometimes that MySQL server restart many time some innodb table broke and We get Error as like :

    130701 22:00:32 [ERROR] Cannot find or open table "asasmsin_shop/skh_aff_commissions" from
    the internal data dictionary of InnoDB though the .frm file for the
    table exists. Maybe you have deleted and recreated InnoDB data
    files but have forgotten to delete the corresponding .frm files
    of InnoDB tables, or you have moved .frm files to another database?
    or, the table contains indexes that this version of the engine
    doesn't support.
    See MySQL :: MySQL 5.1 Reference Manual :: InnoDB General Troubleshooting

    Is it possible prevent this issue when database server restart or other times ?

  2. MaestriaNick

    MaestriaNick Well-Known Member

    Aug 6, 2008
    Likes Received:
    Trophy Points:
    You can check the mysql logs /var/lib/mysql/mysql-error.err and /var/lib/mysql/HOSTNAME.err to get an idea of what causing the mysql server restarts. The corruptions as above usually occur if mysql server shutdown/ exit before the data in buffer is properly write back to the files / manually move across the innodb files. This causes mismatch in the data records causing failure. In most cases, these corruptions are beyond repair and we may need to restore the db from backup.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, finding the cause of the MySQL restarts would be helpful. As mentioned in the previous post, check the MySQL error log to see if there were any specific errors before MySQL restarted.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice