Pages: [1]
  Print  
Author Topic: Installation Step 1 - MySQL Error: Creation of Quartz tables failed  (Read 783 times)
rberger
Newbie
*
Posts: 2


« on: April 20, 2011, 09:07:49 AM »

Hy!

I have almost finished the installation of RapidAnalytics, but during the installation step 1 I got the following error:
Quote
ERROR: Creation of Quartz tables failed: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key lenght is 1000 bytes

I already googled this error and I think it is a problem with the MySQL character set.

Could anyone help me please?  Smiley

Cheers,
rberger
« Last Edit: April 20, 2011, 09:14:21 AM by rberger » Logged
Simon Fischer
Administrator
Sr. Member
*****
Posts: 422



WWW
« Reply #1 on: April 26, 2011, 08:36:16 AM »

Hi,

quartz uses compound keys with three VARCHAR columns of length 200, I believe. That makes for a total of 600 characters. With most encodings, this is still ok, but in UTF16 this is 1200 bytes, which MySQL does not handle by default: Keys can have length at most 1200. Two solutions: Change encoding or allow longer keys. Consult MySQL manual for more info.

Best,
Simon
Logged

Simon Fischer
Rapid-I

Want to meet others from the RapidMiner community and share your research and results? Visit http://www.rcomm2011.org
rberger
Newbie
*
Posts: 2


« Reply #2 on: May 24, 2011, 04:34:35 PM »

Hy Simon!

Thank you very much! I solved the problem this way: I changed the default character set from mysql from utf8 to latin1.

If anyone has the same problem, here is the code:

Code:
alter database *yourdatabsename* default character set latin1 collate latin1_swedish_ci;

Cheers!
Logged
andrea11
Newbie
*
Posts: 18


« Reply #3 on: January 06, 2012, 03:09:21 PM »

Thanks, used the changing charset solution! It worked!
Logged
Pages: [1]
  Print  
 
Jump to: