Table is marked as crashed and should be repaired

前端 未结 6 1388
鱼传尺愫
鱼传尺愫 2020-12-07 08:19

I am getting this error in wordpress phpMyadmin

#145 - Table \'./DB_NAME/wp_posts\' is marked as crashed and should be repaired 

When I log

相关标签:
6条回答
  • 2020-12-07 08:36

    When I got this error:

    #145 - Table '.\engine\phpbb3_posts' is marked as crashed and should be repaired

    I ran this command in PhpMyAdmin to fix it:

    REPAIR TABLE phpbb3_posts;
    
    0 讨论(0)
  • 2020-12-07 08:41

    Run this from your server's command line:

     mysqlcheck --repair --all-databases
    
    0 讨论(0)
  • 2020-12-07 08:48

    This means your MySQL table is corrupted and you need to repair it. Use

    myisamchk -r /DB_NAME/wp_posts
    

    from the command line. While you running the repair you should shut down your website temporarily so that no new connections are attempted to your database while its being repaired.

    0 讨论(0)
  • 2020-12-07 08:50

    Connect to your server via SSH

    then connect to your mysql console

    and

    USE user_base
    REPAIR TABLE TABLE;
    

    -OR-

    If there are a lot of broken tables in current database:

    mysqlcheck -uUSER -pPASSWORD  --repair --extended user_base
    

    If there are a lot of broken tables in a lot of databases:

    mysqlcheck -uUSER -pPASSWORD  --repair --extended -A
    
    0 讨论(0)
  • 2020-12-07 08:51

    I had the same issue when my server free disk space available was 0

    You can use the command (there must be ample space for the mysql files)

    REPAIR TABLE `<table name>`;
    

    for repairing individual tables

    0 讨论(0)
  • 2020-12-07 08:59

    Here is where the repair button is:

    alt text

    0 讨论(0)
提交回复
热议问题