How to Deal with Error 1071; Sqlstate 42000; "Specified Key was Too Long; Max Key Length is 767 Bytes" (Doc ID 1394920.1)

Last updated on SEPTEMBER 10, 2015

Applies to:

MySQL Server - Version 4.0 and later
Information in this document applies to any platform.

Goal

Learn how to change your CREATE TABLE statement (or modify an existing table) when you get this error message:

ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes




Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms