Plesk

Migration fails: Failed to copy content of database: Specified key was too long; max key length is 767 bytes

Symptoms

Cause

The limitation on the key length in the current MySQL version on the target server. In MySQL 5.7 and upwards this limit has been increased to 3072 bytes.

Note: The equivalent of MySQL 5.7 is MariaDB 10.2.

Resolution

Upgrade MariaDB to the 10.2.X or MySQL to the 5.7.X version on the destination server by using instructions from this article:

How to upgrade MySQL 5.5 to 5.6/5.7 or MariaDB 5.5 to 10.0/10.1/10.2 on Linux