当前位置:网站首页>MySQL error resolution - error 1261 (01000): row 1 doesn't contain data for all columns
MySQL error resolution - error 1261 (01000): row 1 doesn't contain data for all columns
2022-07-04 07:11:00 【Become a person in the book】
Report a mistake :
Error occurs when importing data !
mysql> load data infile "/myload/passwd"
-> into table tu.user
-> fields terminated by ":"
-> lines terminated by "\n";
ERROR 1261 (01000): Row 1 doesn't contain data for all columns
Cause analysis :
because sql_mode Set to strict Pattern , To continue importing, you need to “strict_trans_tables” from sql_mode Removing the .
resolvent :
mysql> show variables like "sql_mode"\G; // Query parameter value
*************************** 1. row ***************************
Variable_name: sql_mode
Value: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
1 row in set (0.00 sec)
mysql> set sql_mode='ONLY_FULL_GROUP_BY,NO_ZERO_IN_DATE, // Change the value of the parameter
> NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,
> NO_ENGINE_SUBSTITUTION';
Query OK, 0 rows affected, 1 warning (0.00 sec)
perhaps
mysql> set sql_mode=‘ ’;
# Re import validation !
mysql> load data infile "/myload/passwd" into table tu.user fields terminated by ":" lines terminated by "\n";
Query OK, 21 rows affected, 128 warnings (0.01 sec)
Records: 21 Deleted: 0 Skipped: 0 Warnings: 128
result :
Successful import , Problem solving !
边栏推荐
- The most effective futures trend strategy: futures reverse merchandising
- Tar source code analysis Part 2
- notepad++如何统计单词数量
- flask-sqlalchemy 循环引用
- 电子协会 C语言 1级 34 、分段函数
- Analysis of tars source code 5
- 关于IDEA如何设置快捷键集
- Summary of June 2022
- centos8安装mysql.7 无法开机启动
- selenium驱动IE常见问题解决Message: Currently focused window has been closed.
猜你喜欢
"Sword finger offer" 2nd Edition - force button brush question
[GF (q) + LDPC] regular LDPC coding and decoding design and MATLAB simulation based on the GF (q) field of binary graph
com. alibaba. nacos. api. exception. NacosException
Four sets of APIs for queues
Campus network problems
selenium驱动IE常见问题解决Message: Currently focused window has been closed.
Deep profile data leakage prevention scheme
【网络数据传输】基于FPGA的百兆网/兆网千UDP数据包收发系统开发,PC到FPGA
Redis - detailed explanation of cache avalanche, cache penetration and cache breakdown
selenium IDE插件下载安装使用教程
随机推荐
The number of patent applications in China has again surpassed that of the United States and Japan, ranking first in the world for 11 consecutive years
高薪程序员&面试题精讲系列119之Redis如何实现分布式锁?
tornado项目之路由装饰器
the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
[FPGA tutorial case 7] design and implementation of counter based on Verilog
Finishing (III) - Exercise 2
A new understanding of how to encrypt industrial computers: host reinforcement application
Enter the year, month, and determine the number of days
大厂技术专家:架构设计中常用的思维模型
提升复杂场景三维重建精度 | 基于PaddleSeg分割无人机遥感影像
centos8安装mysql.7 无法开机启动
Tar source code analysis Part 3
Experience installing VMware esxi 6.7 under VMware Workstation 16
Knowledge payment applet dream vending machine V2
How does the inner roll break?
【FreeRTOS】FreeRTOS学习笔记(7)— 手写FreeRTOS双向链表/源码分析
How to buy financial products in 2022?
Redis interview question set
leetcode825. 适龄的朋友
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and