Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 185 invoked from network); 30 Jul 2010 22:14:07 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Jul 2010 22:14:07 -0000 Received: (qmail 93117 invoked by uid 500); 30 Jul 2010 22:14:06 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 93082 invoked by uid 500); 30 Jul 2010 22:14:06 -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 93073 invoked by uid 99); 30 Jul 2010 22:14:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 22:14:06 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.216.43 as permitted sender) Received: from [209.85.216.43] (HELO mail-qw0-f43.google.com) (209.85.216.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jul 2010 22:13:59 +0000 Received: by qwd6 with SMTP id 6so550431qwd.2 for ; Fri, 30 Jul 2010 15:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to :references:content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=MCpMtCPKaEJmrH3MJb/5IFCgHHxOKI/WiLAH6ZhPi08=; b=v7ZNJtMeoOZxIOWMh76ROAyn8HeX5sJM4OmPfXR4JhPLDrOe0fcuadW0BLMEL7ELp5 AbnMaq4VWUU7FdkXEyetFRtNbcAOZ9MHaPTyhP79Db2ftR2rCrW/GlgYCkUnbmPpq5mu pt/1ujRIoabIMp2CsW9bEIUx4wz0RFlOLRBFw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=tOj5YgPcSJ5hxI9aqMbsGfGc+dg6o+cZ/UCLPQjV8Fhd6G1ES3BCcN96OPTYcXKWe4 weSywW5Hp5AmV09frNgtz9cH0QITWXN3cho99mblxS3ERGviGXOR3JGPoRCzauralIVs kbyxyDR7FFxauvYq3F0+ypkIblnnITcsS0jjU= Received: by 10.224.29.4 with SMTP id o4mr456987qac.203.1280528014638; Fri, 30 Jul 2010 15:13:34 -0700 (PDT) Received: from [192.168.2.150] (c-76-21-195-19.hsd1.va.comcast.net [76.21.195.19]) by mx.google.com with ESMTPS id q31sm3150118qcq.44.2010.07.30.15.13.33 (version=SSLv3 cipher=RC4-MD5); Fri, 30 Jul 2010 15:13:34 -0700 (PDT) Subject: Re: ActiveMQ fails to create tables in MySQL 5.5.5 From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <29310273.post@talk.nabble.com> References: <29310273.post@talk.nabble.com> Content-Type: text/plain; charset="UTF-8" Date: Fri, 30 Jul 2010 18:13:33 -0400 Message-ID: <1280528013.2562.3.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 (2.30.2-1.fc13) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2010-07-30 at 15:04 -0700, Matthew J. wrote: > I have been running an embedded ActiveMQ database, using MySQL as the JDBC > data source. This worked fine under MySQL 5.4. I have recently tried > upgrading to MySQL 5.5.5. ActiveMQ works fine as long as the three required > tables in the activemq database are already created. However, if they > aren't, it fails to create the tables. > > The problem appears to be in the create table script that's used. In > previous versions of MySQL, it was legal (though deprecated as of 4.1) to > specify the engine using the "TYPE=INNODB" syntax. However, the preferred > non-deprecated way to do it was to use "ENGINE=INNODB" instead. However, > under 5.5.5, it appears that the MySQL developers have made the "TYPE" > syntax completely illegal, requiring use of the "ENGINE" syntax. > > A relevant MySQL bug discussing the issue: > http://bugs.mysql.com/bug.php?id=17501 > > The following is an example of the actual SQL that is generated by ActiveMQ: > > CREATE TABLE ACTIVEMQ_MSGS(ID BIGINT NOT NULL, CONTAINER VARCHAR(250), > MSGID_PROD VARCHAR(250), MSGID_SEQ BIGINT, EXPIRATION BIGINT, MSG LONGBLOB, > PRIMARY KEY ( ID ) ) TYPE=INNODB > > I haven't had the opportunity to test it, but it seems likely that the > culprit is MySqlJDBCAdapter.java. It includes the line: > > String typeClause = " TYPE="+type; > > which should probably change to > > String typeClause = " ENGINE="+type; > Can you open a new Jira issue for this, and even better, attach a patch :) Regards -- Tim Bish Open Source Integration: http://fusesource.com ActiveMQ in Action: http://www.manning.com/snyder/ Follow me on Twitter: http://twitter.com/tabish121 My Blog: http://timbish.blogspot.com/