Resolution about MySQL appearing 1264 out of range value for column errors

Source: Internet
Author: User

Reason:
A strict check of the new version of MySQL on the field. after MySQL is usually installed under Linux, the default Sql_mode value is empty, in which case MySQL performs an irregular check, and if the length of the field to be inserted exceeds the length defined by the column, then MySQL does not terminate the operation. Instead, the subsequent characters are automatically truncated to continue with the insert operation! But under Windows it doesn't. It's a direct stop to report the above error!


Workaround

Modify MY.CNF

Sql_mode = Error_for_division_by_zero,no_auto_create_user,no_engine_substitution


The main is removed:

Strict_trans_tables


Reference:

Http://www.fyhqy.com/post-225.html


Resolution about MySQL appearing 1264 out of range value for column errors

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.