Skip to content

Commit

Permalink
fix for max key length errors in InnoDB tables.
Browse files Browse the repository at this point in the history
Reducing the length of the username field in the Table Users from varchar(256) to varchar(255) prevents MySQL error "Specified key was too long; max key length is 767 bytes" which is a stated prefix limititation for MySQL InnoDB tables. Relevant for utf8 character encodings.
  • Loading branch information
tchaddad authored and Jesse Eichar committed Apr 26, 2013
1 parent 84fce89 commit 699113d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ CREATE TABLE RegionsDes
CREATE TABLE Users
(
id int not null,
username varchar(256) not null,
username varchar(255) not null,
password varchar(120) not null,
surname varchar(32),
name varchar(32),
Expand Down

0 comments on commit 699113d

Please sign in to comment.