Issue Details (XML | Word | Printable)

Key: JAMES-524
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Norman Maurer
Reporter: Norman Maurer
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
JAMES Server

James fails to create mysql tables with mysql-4.1.

Created: 08/Jun/06 06:44 PM   Updated: 21/Nov/07 08:31 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 2.3.0

Time Tracking:
Not Specified

Resolution Date: 08/Jun/06 06:58 PM


 Description  « Hide
From Maillinglist:

Hi,

I'd like to point out to the list a problem with James and MySQL 4.1. The character set support was
revamped from MySQL 4.0 to MySQL 4.1, and as a result on some systems (in my case, Gentoo) UTF-8 is
now the default character set on install.

This is a problem when creating the spool, inbox and deadletter tables. The primary key for these
tables is (message_name, repository_name). On my system MySQL allows for 3 bytes per UTF-8
character, and has a maximum key length of 1000 bytes. Since message_name is 200 chars and
repository_name is 255 chars by default, the key length exceeds 1000 bytes and the table cannot be
created.

The key length issue in MySQL is better described here:
http://www.xaprb.com/blog/2006/04/17/max-key-length-in-mysql/

I managed to solve the problem by reducing the length of repository_name to 128 chars.

Ciao,
Craig

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Norman Maurer made changes - 08/Jun/06 06:58 PM
Field Original Value New Value
Fix Version/s 2.4.0 [ 12311645 ]
Fix Version/s 2.3.0 [ 12310796 ]
Resolution Fixed [ 1 ]
Status Open [ 1 ] Resolved [ 5 ]
Stefano Bagnara made changes - 10/Jun/06 08:55 PM
Fix Version/s 2.3.0b1 [ 12311920 ]
Fix Version/s 2.3.0 [ 12310796 ]
Stefano Bagnara made changes - 21/Jul/06 03:36 PM
Fix Version/s 3.0 [ 10427 ]
Danny Angus made changes - 21/Nov/07 08:31 AM
Status Resolved [ 5 ] Closed [ 6 ]