MySql successfully inserted data but reported [Err] 1055, err1055

Source: Internet
Author: User

MySql successfully inserted data but reported [Err] 1055, err1055

1. Problem:

 

In the past two days, the insert operation is performed. mysql version is 5.7. After the insert operation is successful, an error of [Err] 1055 is reported. The details are as follows:

2. solution:

 

In linux, run vim TO my. cnf and add the following statement:

SQL _mode = NO_ENGINE_SUBSTITUTION, STRICT_TRANS_TABLES

Save and exit. Restart mysql.

3. Test

 

Check whether the problem is solved.

We can see that there is no error.

4. Conclusion

Although it is a small problem, every operation reports an error. It is uncomfortable for people with obsessive-compulsive disorder. This solution is also available on the Internet. Record it here and hope it will help new people.

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.