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

MySQL installation tutorial under Windows with pictures and text

MySQL installation instructions MySQL is a relati...

Detailed tutorial on compiling and installing python3.6 on linux

1. First go to the official website https://www.p...

Detailed explanation of mysql record time-consuming sql example

mysql records time-consuming sql MySQL can record...

How to disable IE10's password clear text display and quick clear function

IE10 provides a quick clear button (X icon) and a ...

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

1. Question: I have been doing insert operations ...

Example of how to exit the loop in Array.forEach in js

Table of contents forEach() Method How to jump ou...

Implementation of MySQL index-based stress testing

1. Simulate database data 1-1 Create database and...

Detailed explanation of Tomcat directory structure

Table of contents Directory Structure bin directo...

MySQL query optimization using custom variables

Table of contents Optimizing sorting queries Avoi...

Vue Page Stack Manager Details

Table of contents 2. Tried methods 2.1 keep-alive...

How to deal with time zone issues in Docker

background When I was using Docker these two days...

Example code of vue icon selector

Source: http://www.ruoyi.vip/ import Vue from ...

vue-router hook function implements routing guard

Table of contents Overview Global hook function R...

Vite+Electron to quickly build VUE3 desktop applications

Table of contents 1. Introduction 2. Create a Vit...