My Oracle Support Banner

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 FEBRUARY 26, 2020

Applies to:

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


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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.