Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Robje 9 posts 29 karma points
    Oct 06, 2009 @ 15:58
    Robje
    0

    Column length too big for column 'EMAIL'

    I developed a website, using Umbraco (umbraco v 4.0.2.1 (Assembly version: 1.0.3441.17657)). The database is MySQL, which run on one of our development servers. So far so good.

    Now I try to import the backup file I made (using  MySQL Administrator tool) into the webhost. But during the import, I got the following error message:

    ERROR 1074 (42000) at line 1947: Column length too big for column 'EMAIL' (max = 255); use BLOB or TEXT instead

    Does somebody know what the reason is about this error?

     

  • Rich Green 2246 posts 4008 karma points
    Oct 06, 2009 @ 16:14
    Rich Green
    0

    I don't use MySQL but it seems that the error is as described.

    The field 'EMAIL' (I'm not sure which table) needs to be changed from whatever it is to a TEXT field as the data it is trying to import is too long for the field.

    Thinking about it, there shouldn't really be anything too long in an 'Email' field so maybe your mapping is out somehow?

     

  • Robje 9 posts 29 karma points
    Oct 06, 2009 @ 16:32
    Robje
    0

    Well, there are a lot more tables with will cause that problem. The 'EMAIL' field is a varchar(1000) and there a much more table columns with that.

    By the way, our host provider run MySQL 4.1.22.

  • Robje 9 posts 29 karma points
    Oct 08, 2009 @ 09:49
    Robje
    0

    Are there more people out there, dealing with this problem?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Oct 08, 2009 @ 11:28
    Douglas Robar
    0

    I can't find it anywhere but I thought the MySQL support required MySQL 5. I'll keep looking to see if I can verify that one way or the other. But to keep you moving, is there any chance you can try with MySQL 5.x?

    cheers,
    doug.

  • Robje 9 posts 29 karma points
    Oct 08, 2009 @ 14:18
    Robje
    0

    I found a workaround. In the backup script, I changed all varchar(1000) into tinytext. As far as I can see now, it doesn't give any problems.

Please Sign in or register to post replies

Write your reply to:

Draft