Unsuccessful: create table jbpm_processinstance (id_ bigint not null auto_increment, version_ integer not null, key_ varchar(255), start_ datetime, end_ datetime, issuspended_ bit, processdefinition_ bigint, roottoken_ bigint, superprocesstoken_ bigint, primary key (id_), unique (key_, processdefinition_))
2011-08-27 16:52:55,812 
[main] ERROR [org.hibernate.tool.hbm2ddl.SchemaUpdate] - Specified key was too long; max key length is 767 bytes
我将数据库的编码设成gbk就可以,想问一下为什么utf8的不行?