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 implements a solution similar to Oracle sequence

MySQL implements Oracle-like sequences Oracle gen...

4 functions implemented by the transform attribute in CSS3

In CSS3, the transform function can be used to im...

A brief discussion on the principle of js QR code scanning login

Table of contents The essence of QR code login Un...

Implementation of webpack code fragmentation

Table of contents background CommonsChunkPlugin s...

Solution to ERROR 1366 when entering Chinese in MySQL

The following error occurs when entering Chinese ...

How does Zabbix monitor and obtain network device data through ssh?

Scenario simulation: The operation and maintenanc...

Example of Vue routing listening to dynamically load the same page

Table of contents Scenario Analysis Development S...

Mobile browser Viewport parameters (web front-end design)

Mobile browsers place web pages in a virtual "...

Implementation of Nginx hot deployment

Table of contents Semaphore Nginx hot deployment ...