The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Innodb Question

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

  1. mahdy_sharifi

    mahdy_sharifi Well-Known Member

    Joined:
    Feb 26, 2012
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    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 :: 14.6.12.3 InnoDB General Troubleshooting

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

    Thanks
     
  2. MaestriaNick

    MaestriaNick Well-Known Member

    Joined:
    Aug 6, 2008
    Messages:
    159
    Likes Received:
    3
    Trophy Points:
    18
    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.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,761
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
Loading...

Share This Page