Plesk

Plesk pre-migration check finishes with an error: Set variable innodb_strict_mode to OFF on target to avoid the migration errors

Symptoms

Cause

Strict mode is enabled on the newer versions of MySQL/MariaDB by default.

Resolution

Note: Once the migration will finish, it is safe to enable back the innodb_strict_mode option in Plesk Obsidian.

For Linux

  1. Connect to the target server via SSH.

  2. Add innodb_strict_mode to MySQL configuration:
    2.1. Open MySQL configuration file /etc/my.cnf in a text editor, for example, in the vi editor:

    vi /etc/my.cnf

Note: For Debian/Ubuntu the path is /etc/mysql/my.cnf

2.2. Add innodb_strict_mode=OFF under the [mysqld] section:

[mysqld]
innodb_strict_mode=OFF

2.3. Save the changes and close the file.

  1. Restart MySQL service:

    # service mysql restart || service mariadb restart || service mysqld restart

  1. Proceed with the migration.

For Windows

  1. Connect to the target server via RDP.
  2. Open MySQL configuration file %plesk_dir%DatabasesMySQLmy.ini in a text editor.
    2.1 Add innodb_strict_mode=OFF under the [mysqld] section:

    [mysqld]
    innodb_strict_mode=OFF

    2.3. Save the changes and close the file

  1. Restart MySQL service via Plesk Services Monitor (it can be found in the system tray).

  2. Proceed with the migration