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!

error on optimize and repair all databases

Discussion in 'Database Discussion' started by Masimo, Feb 5, 2016.

  1. Masimo

    Masimo Well-Known Member

    Joined:
    Nov 19, 2015
    Messages:
    70
    Likes Received:
    2
    Trophy Points:
    8
    Location:
    Tbilisi
    cPanel Access Level:
    Root Administrator
    MySQL crashed and too many databases need to be repair.

    Sample logs:
    Code:
    2016-02-05 16:08:31 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:31 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:32 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:32 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:32 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:32 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:32 19683 [ERROR] /usr/sbin/mysqld: Table './markerd_mtn/mtn_session' is marked as crashed and should be repaired
    2016-02-05 16:08:34 19683 [ERROR] /usr/sbin/mysqld: Table './guilansa_jolnew/in7e0_session' is marked as crashed and should be repaired
    2016-02-05 16:08:34 19683 [ERROR] /usr/sbin/mysqld: Table './guilansa_jolnew/in7e0_session' is marked as crashed and should be repaired
    2016-02-05 16:08:34 19683 [ERROR] /usr/sbin/mysqld: Table './guilansa_jolnew/in7e0_session' is marked as crashed and should be repaired
    2016-02-05 16:08:34 19683 [ERROR] /usr/sbin/mysqld: Table './guilansa_jolnew/in7e0_session' is marked as crashed and should be repaired
    2016-02-05 16:09:02 19683 [ERROR] /usr/sbin/mysqld: Table './kimiasan_nprz/nprz_session' is marked as crashed and should be repaired
    2016-02-05 16:09:02 19683 [ERROR] /usr/sbin/mysqld: Table './kimiasan_nprz/nprz_session' is marked as crashed and should be repaired
    2016-02-05 16:09:02 19683 [ERROR] /usr/sbin/mysqld: Table './kimiasan_nprz/nprz_session' is marked as crashed and should be repaired
    2016-02-05 16:09:02 19683 [ERROR] /usr/sbin/mysqld: Table './kimiasan_nprz/nprz_session' is marked as crashed and should be repaired
    2016-02-05 16:09:02 19683 [ERROR] /usr/sbin/mysqld: Table './kimiasan_nprz/nprz_session' is marked as crashed and should be repaired
    2016-02-05 16:10:50 19683 [ERROR] /usr/sbin/mysqld: Table './hydrop_power/hydro_session' is marked as crashed and should be repaired
    2016-02-05 16:10:50 19683 [ERROR] /usr/sbin/mysqld: Table './hydrop_power/hydro_session' is marked as crashed and should be repaired
    I started to check and repair all databases by following line:

    Code:
    mysqlcheck -u root -p --auto-repair --optimize --all-databases
    Everything is fine (from A-T) till "test_db", Then process stop by following error:

    Code:
    mysqlcheck: Got error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`com`' at line 1 when executing 'OPTIMIZE TABLE ... '
    Whats wrong and how can resolve this problem?

    NOTE: mysql "innodb_force_recovery" set to zero.
    Databases only working fine on "innodb_force_recovery = 0"

    Any idea?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 Masimo, Feb 5, 2016
    Last edited by a moderator: Feb 5, 2016
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,809
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

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