Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unique key far too long unsig UTF-8 #7

Open
yvandermeer opened this issue Jan 22, 2015 · 0 comments
Open

Unique key far too long unsig UTF-8 #7

yvandermeer opened this issue Jan 22, 2015 · 0 comments

Comments

@yvandermeer
Copy link
Owner

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)


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant