Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 56020 invoked from network); 16 Oct 2008 08:40:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Oct 2008 08:40:14 -0000 Received: (qmail 92718 invoked by uid 500); 16 Oct 2008 08:40:14 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 92704 invoked by uid 500); 16 Oct 2008 08:40:14 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 92693 invoked by uid 99); 16 Oct 2008 08:40:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 01:40:14 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Oct 2008 08:39:05 +0000 Received: from [192.168.236.156] (helo=isper.nabble.com) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KqOOT-0004JJ-Ti for users@activemq.apache.org; Thu, 16 Oct 2008 01:39:41 -0700 Message-ID: <20009472.post@talk.nabble.com> Date: Thu, 16 Oct 2008 01:38:51 -0700 (PDT) From: tricpod To: users@activemq.apache.org Subject: mysql 4.1 ACTIVEMQ_ACKS primary key length MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tricpod@googlemail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I have to install ActiveMQ on a mysql 4.1 database. If I create ACTIVEMQ_ACKS with CREATE TABLE ACTIVEMQ_ACKS ( CONTAINER varchar(250) collate utf8_general_ci NOT NULL, SUB_DEST varchar(250) collate utf8_general_ci default NULL, CLIENT_ID varchar(250) collate utf8_general_ci NOT NULL, SUB_NAME varchar(250) collate utf8_general_ci NOT NULL, SELECTOR varchar(250) collate utf8_general_ci default NULL, LAST_ACKED_ID int(11) default NULL, PRIMARY KEY (CONTAINER,CLIENT_ID,SUB_NAME) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci; I got a Error Code : 1071 Specified key was too long; max key length is 1024 bytes There was written before to it should be safe do decrease some field to 128. What kind of data is written to CONTAINER, CLIENT_ID and SUB_NAME? To create the primary key I have to decrease all 3 to varchar(113) (3 Byte UFT-8*3=1017). What is the best way to get this table? All fields same size? Don't use key? kind regards Thomas -- View this message in context: http://www.nabble.com/mysql-4.1-ACTIVEMQ_ACKS-primary-key-length-tp20009472p20009472.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.