Unix Technical Forum

Re: mysql InnoDB table creation problem

This is a discussion on Re: mysql InnoDB table creation problem within the MySQL General forum forums, part of the MySQL category; --> On 3/26/07, Anil D <adoppalapudi@zustek.com> wrote: > > > > Varchar = 0 bytes I don't think this is ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:04 AM
Joshua Marsh
 
Posts: n/a
Default Re: mysql InnoDB table creation problem

On 3/26/07, Anil D <adoppalapudi@zustek.com> wrote:
>
>
>
> Varchar = 0 bytes



I don't think this is right, see below.

Charset used: UTF8


UTF8 means that some characters may be two bytes, see below.

Note: When consider even the size Varchar(m) = m+1 bytes, the size of row
> has reached 35,000 bytes.



Here is my guess, but I can't say for sure because I'm still a little new to
this all. The row length doesn't exclude VARCHAR, only TEXT and BLOBs. If
you take that into account as well as your encoding requiring two bytes per
character, then a VARCHAR(50) is going to take up (50*2)+4 = 104 bytes.

Either way, since mysql thinks it's too large, it must be to large. I would
suggest converting several VARCHAR fields to TEXT and see what happens.

-Josh

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:28 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com