> For the complete documentation index, see [llms.txt](https://mariadb.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mariadb.com/docs/server/reference/error-codes/mariadb-error-codes-1500-to-1599/e1558.md).

# Error 1558: Column count is wrong. Expected found. Created with MariaDB now running. Please use mysq

| Error Code | SQLSTATE | Error                                         | Description                                                                                                                                     |
| ---------- | -------- | --------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| 1558       | HY000    | ER\_COL\_COUNT\_DOESNT\_MATCH\_PLEASE\_UPDATE | Column count of mysql.%s is wrong. Expected %d, found %d. Created with MariaDB %d, now running %d. Please use mysql\_upgrade to fix this error. |

## Possible Causes and Solutions

### Not upgrading properly

This error likely means an upgrade hasn't been performed properly, as one of the system tables does not match the expected size for the running release. [mariadb-upgrade](/docs/server/clients-and-utilities/deployment-tools/mariadb-upgrade.md) usually takes care of this. See [Upgrading Between Major MariaDB Versions](/docs/server/server-management/install-and-upgrade-mariadb/upgrading/platform-specific-upgrade-guides/upgrading-on-linux/upgrading-between-major-mariadb-versions.md).

<sub>*This page is licensed: CC BY-SA / Gnu FDL*</sub>

{% @marketo/form formId="4316" %}
