Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7867995
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:51:38+00:00 2026-06-03T00:51:38+00:00

I have switched from sql server 2005 to mysql which was not really a

  • 0

I have switched from sql server 2005 to mysql which was not really a problem.

I have a slight issue with (n)varchar which exist in sql server. Usually I have used:

mapping.Map(x => x.bla).Length(10000);

to set bla to nvarchar(max). does this work in mysql? I believe there is no nvarchar in mysql and you have to use something like this:

alter table sometable modify bla VARCHAR(21844) CHARACTER SET utf8

to update an existing column to ‘nvarchar(max)’. Is this correct because I am getting:

“Row size too large. The maximum row size for the used table type”

If I am using:

alter table sometable modify bla VARCHAR(1000) CHARACTER SET utf8

things work but I am not sure whether this achieves ‘nvarchar(max)’ in mysql.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:51:42+00:00Added an answer on June 3, 2026 at 12:51 am

    As explained in the manual:

    Every table (regardless of storage engine) has a maximum row size of 65,535 bytes. Storage engines may place additional constraints on this limit, reducing the effective maximum row size.

    The maximum row size constrains the number (and possibly size) of columns because the total length of all columns cannot exceed this size. For example, utf8 characters require up to three bytes per character, so for a CHAR(255) CHARACTER SET utf8 column, the server must allocate 255 × 3 = 765 bytes per value. Consequently, a table cannot contain more than 65,535 / 765 = 85 such columns.

    Storage for variable-length columns includes length bytes, which are assessed against the row size. For example, a VARCHAR(255) CHARACTER SET utf8 column takes two bytes to store the length of the value, so each value can take up to 767 bytes.

    You must therefore consider what other columns exist in your table and calculate the maximum size available for this VARCHAR.

    However, if you require space for long text values, why not use the TEXT data types, which are not constrained by this limit (except for the 9 to 12 bytes they contribute toward it)?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just switched from Java Server Faces JSF 1.x to JSF 2.x. Files
We have switched from sqlite to FireBird embedded server, because FB seems to support
I have recently switched from Netbeans to Eclipse. I have a project which contains
I have a multipage application which needs to manually switched from one page to
I have a partitioned fact table on a SQL Server 2005 (Ent, Ed., 32
I've switched from LINQ to SQL to ADO.NET (with MSSQL) because of a problem
I just switched from mysql to postgres (yay!) but now on my postgres server
I have switched from mysql to Dynamo DB .In mysql i have used a
I have just switched from svn to mercurial and have read some tutorials about
I have heard from people who have switched either way and who swear by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.