Plesk

MySQL/MariaDB error in Plesk for Linux: Column count of mysql.user is wrong. Please use mysql_upgrade to fix this error

Applicable to:

  • Plesk for Linux

Symptoms

Cause

Some tables in the mysql database have an incorrect schema.

Resolution

  1. Connect to the server via SSH.

  2. Upgrade the mysql database:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin -T --debug-check MySQL

  3. If the command above reports the following:

    This installation of MariaDB is already upgraded to 10.5.15-MariaDB.
    There is no need to run mysql_upgrade again for 10.5.16-MariaDB.
    You can use --force if you still want to run mysql_upgrade

    Use "--force" option to trigger the upgrade:

    # MYSQL_PWD=`cat /etc/psa/.psa.shadow` mysql_upgrade -uadmin --force

Exit mobile version