Plesk

MySQL/MariaDB reports the error on a Plesk for Linux server: Cannot load from mysql.<table_name>. The table is probably corrupted – Plesk

Symptoms

Cause

The mysql.<table_name> table is broken or the structure of a column in the table is incorrect.

Resolution

  1. Connect to the Plesk server via SSH.

  2. Repair the broken table:

    • If mysql.proc is corrupted:

      # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin mysql -Ne"REPAIR TABLE mysql.proc"
      +------------+--------+--------+----+
      | mysql.proc | repair | status | OK |
      +------------+--------+--------+----+

    • If mysql.user is corrupted:

      # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql -uadmin mysql -Ne"REPAIR TABLE mysql.user"
      +------------+--------+--------+----+
      | mysql.user | repair | status | OK |
      +------------+--------+--------+----+

  3. Upgrade MySQL/MariaDB system tables:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` /usr/bin/mysql_upgrade --force -uadmin --upgrade-system-tables

  4. Restart the MySQL/MariaDB service. The command depends on installed MySQL/MariaDB server and operating system:

    # service mysql restart

    # service mariadb restart

Additional information

How to fix InnoDB corruption cases for the MySQL/MariaDB databases on Plesk for Linux?

Exit mobile version