Articles in this section

Restoration of a database fails in Plesk: errno: 140 "Wrong create options"

Plesk for Windows Plesk for Linux kb: technical ext: migrator

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Symptoms

When importing a database or migrating it from another server, the database restoration fails with:

CONFIG_TEXT: Can't create table `mydatabase`.`mytable` (errno: 140 "Wrong create options")
program 'mysql' finished with non-zero exit code: 1

Cause

InnoDB does not have the ROW_FORMAT FIXED option.

This is a MariaDB bug.

Resolution

In case of database import:

  • Open the database dump in a text editor and replace all ROW_FORMAT=FIXED with ROW_FORMAT=DYNAMIC.

 

In case of migration:

  1. Connect to the source server via SSH (Linux) / RDP (Windows Server).

  2. Connect to MySQL.

  3. Change the view to the database that is failing in the error message:

    MYSQL_LIN: use example_db;

  4. Change the ROW_FORMAT to DYNAMIC:

    MYSQL_LIN: ALTER TABLE mytable ROW_FORMAT=DYNAMIC;

  5. Connect to the destination server and re-sync the subscription.

Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.