Search code examples
mysqlarchivemyisam

MySQL cannot convert its engine from MyISAM to ARCHIVE


The table whose engine needs to be converted is only for read purpose and its content will never change. So I want to convert the engine of the table as ARCHIVE, but when I tried to convert it, I got the error below.

Error Code: 1069. Too many keys specified; max 1 keys allowed

The version of MySQL is 5.5. Is this index related problem?

enter image description here

enter image description here


Solution

  • Looks like it definitely is a PK problem since archive does not support primary keys. You can simply drop the primary key and it should work.

    Refer to this post for examples on how to convert your db