Modify ↓
Opened 17 years ago
Closed 17 years ago
#6026 closed defect (duplicate)
failed to create environment - specified key too long
Reported by: | xushi dot xushi at gmail dotcom | Owned by: | Jonas Borgström |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | general | Version: | 0.10.3.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Hi,
I am getting the same problem as ticket #3673 where mysql fails to create the tables. However, this is using version 0.10.3.1.
Creating and Initializing Project Failed to create environment. (1071, 'Specified key was too long; max key length is 1000 bytes') Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 613, in do_initenv options=options) File "/usr/lib/python2.4/site-packages/trac/env.py", line 124, in __init__ self.create(options) File "/usr/lib/python2.4/site-packages/trac/env.py", line 229, in create DatabaseManager(self).init_db() File "/usr/lib/python2.4/site-packages/trac/db/api.py", line 69, in init_db connector.init_db(**args) File "/usr/lib/python2.4/site-packages/trac/db/mysql_backend.py", line 50, in init_db cursor.execute(stmt) File "/usr/lib/python2.4/site-packages/trac/db/util.py", line 51, in execute return self.cursor.execute(sql) File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py", line 166, in execute self.errorhandler(self, exc, value) File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py", line 35, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1071, 'Specified key was too long; max key length is 1000 bytes') Failed to initialize environment. 1 Traceback (most recent call last): File "/usr/lib/python2.4/site-packages/trac/scripts/admin.py", line 617, in do_initenv sys.exit(1) SystemExit: 1
Attachments (0)
Change History (3)
comment:1 by , 17 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
comment:2 by , 17 years ago
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:3 by , 17 years ago
Milestone: | not applicable |
---|---|
Resolution: | → duplicate |
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
I read ticket #4091 and noticed that it's fixed in version 0.10.4. I upgraded and it worked.
Keep up the good work.