Plesk

Migration or backup failed: mysqldump: Got error: 145

Symptoms

Cause

Database table corruption.

Resolution

Repair the corrupted database using one of the following methods:

Via Plesk GUI

  1. Log in to Plesk
  2. Navigage to Plesk > Domains > example.com > Databases > db_name and click Check and Repair:

Via phpMyAdmin

  1. Log in to Plesk;

  2. Navшgate to Plesk > Domains > example.com > Databases > db_name and click phpMyAdmin:

  3. Click SQL button and run the following query:

    REPAIR TABLE table_name;

    Where table_name is the name of the table to repare

Via SSH

  1. Connect to the server via SSH;

  2. Execute the command:

    # MYSQL_PWD=cat /etc/psa/.psa.shadow  mysqlcheck -uadmin -r db_name table_name

    Where db_name is the name of the database where table table_name to be repaired.

Note: if the solutions below don't help, the affected database should be restored from a backup.

Exit mobile version