Plesk

MariaDB is not able to start: Got error ‘144 “Table is crashed and last repair failed”‘ for ‘./mysql/global_priv’

Applicable to:

  • Plesk for Linux

Symptoms

Cause

The global_priv table in MariaDB is corrupted.

Resolution

  1. Connect to the server via SSH

  2. Add skip-grant-tables in the [mysqld] section of:

    • On Centos/RHEL: /etc/my.cnf
    • On Debian/Ubuntu: /etc/mysql/my.cnf
  3. Restart MariaDB:

    # systemctl restart mariadb

  4. Log into MariaDB:

    # plesk db

    use mysql;

  5. Repair broken table:

    MariaDB [mysql]> repair table global_priv;
    +-------------------+--------+----------+----------------------------------------+
    | Table | Op | Msg_type | Msg_text |
    +-------------------+--------+----------+----------------------------------------+
    | mysql.global_priv | repair | warning | Number of rows changed from 195 to 102 |
    | mysql.global_priv | repair | status | OK |
    +-------------------+--------+----------+----------------------------------------+
    2 rows in set (0.009 sec)

  6. Remove skip-grant-tables from my.cnf

  7. Restart MariaDB again:

    # systemctl restart mariadb

Exit mobile version