#1366 MySQL Error resolution appears under apache2.2 php5.3.6 mysql5.5

Source: Internet
Author: User

Environment: Windows 10 10240

PHP Environment

apache2.2 php5.3.6 mysql-5.5.33-winx64

When testing an open source project, there was a

error:1366| | Incorrect integer value: ' for column ' id ' at row 1

Error

Search for solutions Online:

Finally found a way.

Explanation: The ID primary key does not increase automatically in the version after MySQL 5.0, it needs to be assigned.

In the location where the INSERT statement corresponds to the ID, the assignment of NULL will be resolved.

another Netizen's explanation : After analysis MSYQL 5.1 above must assign a value to the field, automatically increase the index field must be assigned null, the previous version can not be assigned to automatically increase.


This article is from the "Lone Boat Night House" blog, please be sure to keep this source http://cysky.blog.51cto.com/211942/1694863

#1366 MySQL Error resolution appears under apache2.2 php5.3.6 mysql5.5

Related Article

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.