MySql inserts data successfully but reports [Err] 1055 error solution

MySql inserts data successfully but reports [Err] 1055 error solution

1. Question:

I have been doing insert operations these days. The MySQL version is 5.7. Although the insert is successful, an error [Err] 1055 is reported. The details are as follows:

2.Solution:

In the Linux environment, go to my.cnf with vim and add the following statement:

sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES

Finally save and exit, restart mysql

3. Testing

See if it is solved

You can see that there is no error.

Summarize

The above is the solution that I introduced to you when MySql successfully inserts data but reports [Err] 1055 error. I hope it will be helpful to you. If you have any questions, please leave me a message and I will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Solve the group by query problem after upgrading Mysql to 5.7
  • The perfect solution for MySql version problem sql_mode=only_full_group_by
  • Detailed explanation of count(), group by, order by in MySQL
  • Solution to MySQL 5.7 group by new feature error 1055
  • How to use GROUP BY in MySQL to get the first N records
  • Analysis of MySQL: single table distinct, multi-table group by query to remove duplicate records
  • In-depth analysis of the order by and group by sequence issues in MySQL
  • Detailed tutorial on using Group By in SQL

<<:  Steps to use autoconf to generate Makefile and compile the project

>>:  Example code of vue + element ui to realize player function

Recommend

The difference between JS pre-parsing and variable promotion in web interview

Table of contents What is pre-analysis? The diffe...

Linux centOS installation JDK and Tomcat tutorial

First download JDK. Here we use jdk-8u181-linux-x...

Steps to deploy ingress-nginx on k8s

Table of contents Preface 1. Deployment and Confi...

Tutorial on how to install and use Ceph distributed software under Linux

Table of contents Preface 1. Basic Environment 1....

MySQL turns off password strength verification

About password strength verification: [root@mysql...

Linux Domain Name Service DNS Configuration Method

What is DNS The full name of DNS is Domain Name S...

Practical record of handling MySQL automatic shutdown problems

I recently helped someone with a project and the ...

Detailed explanation of mysql execution plan id is empty (UNION keyword)

Introduction During the work process, slow querie...

jQuery clicks on the love effect

This article shares the specific code of jQuery&#...

How to configure Nginx's anti-hotlinking

Experimental environment • A minimally installed ...

Introduction to user management under Linux system

Table of contents 1. The significance of users an...