You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using django 1.2.3 with python 2.6.6 and mysql 5.1.49.
When I run ./manage.py syncdb, I receive the following error:
_mysql_exceptions.OperationalError: (1071, 'Specified key was too long; max key length is 1000 bytes')
This is very likely caused by the line:
unique_together = ('domain', 'port', 'path', 'querykey')
The length of the four fields totals (with a utf-8 encoding) to more than 1000 bytes (100+4(8?)+250+255=609(613?)*3) (3 comes from this discussion: http://bugs.mysql.com/bug.php?id=6604)
Greetings,
I am using django 1.2.3 with python 2.6.6 and mysql 5.1.49.
When I run ./manage.py syncdb, I receive the following error:
_mysql_exceptions.OperationalError: (1071, 'Specified key was too long; max key length is 1000 bytes')
This is very likely caused by the line:
unique_together = ('domain', 'port', 'path', 'querykey')
The length of the four fields totals (with a utf-8 encoding) to more than 1000 bytes (100+4(8?)+250+255=609(613?)*3) (3 comes from this discussion: http://bugs.mysql.com/bug.php?id=6604)
The text was updated successfully, but these errors were encountered: