Skip to Content.
Sympa Menu

grouper-users - newbie help with mysql, please

Subject: Grouper Users - Open Discussion List

List archive

newbie help with mysql, please


Chronological Thread 
  • From: "Tom Zeller" <>
  • To: "Grouper Users Mailing List" <>
  • Subject: newbie help with mysql, please
  • Date: Tue, 9 Dec 2008 13:39:08 -0600
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=IFpXMpbaXjALzYkRoq78KOkvGxtgPdOwzU+ss/yBa08oo00V3nneTTkl3cMMJ4cWNr OcidY7By9vTtlXeuCx7rB5uzKYq6hr8lI07idkF9VSh+jPhsPgiDmsNy5Wor6EaDJi86 JRYnRKyjZZIGnEvzTGR+c32+71f+zhLYgLbYI=

When using Grouper 1.4.0 RC1 and mysql 5.0 and attempting to
initialize via gsh -registry -check I receive "Specified key was too
long; max key length is 1000 bytes".

Help ? (I'm not using the utf8 charset.)

Hopefully it's operator error. I don't have much experience with mysql.

Thanks,
TomZ


mysql> CREATE INDEX attribute_field_value_idx ON grouper_attributes
(field_id, value);
ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes

mysql> describe grouper_attributes;
+--------------------------+---------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+--------------------------+---------------+------+-----+---------+-------+
| id | varchar(128) | NO | PRI | NULL | |
| group_id | varchar(128) | NO | MUL | NULL | |
| field_id | varchar(128) | NO | | NULL | |
| value | varchar(1024) | NO | | NULL | |
| hibernate_version_number | bigint(20) | YES | | NULL | |
+--------------------------+---------------+------+-----+---------+-------+
5 rows in set (0.00 sec)

mysql> status;
--------------
./mysql5 Ver 14.12 Distrib 5.0.67, for apple-darwin9.5.0 (i686) using
EditLine wrapper

Connection id: 23
Current database: grouper
Current user:
root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Using delimiter: ;
Server version: 5.0.67 Source distribution
Protocol version: 10
Connection: Localhost via UNIX socket
Server characterset: latin1
Db characterset: latin1
Client characterset: latin1
Conn. characterset: latin1

grouper.hibernate.properties :

hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
hibernate.connection.driver_class = com.mysql.jdbc.Driver
hibernate.connection.url = jdbc:mysql://127.0.0.1:3306/grouper



Archive powered by MHonArc 2.6.16.

Top of Page