Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

MySQL 5.5 vs 5.6 character set issue (no replies)

$
0
0
I have a 5.5 & 5.6 install. In 5.5 when I create a index using a column varchar(750) it works fine. In 5.6 the same statement fails with error "767 max bytes exceeded for index key". This is supposedly due to the fact that 5.6 uses utf8 be default instead of latin_1 (utf8 is a multibyte char set)? I can't find any docs that say that the default character set changed from 5.5 to 5.6, also in 5.5 after creating the index, the metadata shows the first columns as "vchar_col (255)" as if the server itself put a size limit on the first column to make it less than 767. This is all due to the fact that MySQL assumes that any multibyte character set will be 3 bytes per character so a varchar (750) column is actually 2250 bytes.

1. Does 5.6 change the default character set?
2. Does 5.5 change the size of a index column if it is too big, but 5.6 does not have this functinality?
3. I can change the "large key" parameter in option file to allow for 3000 bytes in keys but I am not sure if that is a bad idea as far as perforamance is concerned?


thx,
rick_806

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>