当前位置:网站首页>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 columnsCause 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 !
边栏推荐
- Data double write consistency between redis and MySQL
- flask-sqlalchemy 循环引用
- 由于dms升级为了新版,我之前的sql在老版本的dms中,这种情况下,如何找回我之前的sql呢?
- Tar source code analysis Part 7
- What is the use of cloud redis? How to use cloud redis?
- MySQL 45 lecture learning notes (x) force index
- Lottery system test report
- Summary of MySQL common judgment functions!! Have you used it
- 大厂技术专家:架构设计中常用的思维模型
- 校园网络问题
猜你喜欢

The most effective futures trend strategy: futures reverse merchandising

Adaptive spatiotemporal fusion of multi-target networks for compressed video perception enhancement
![[kubernetes series] kubesphere is installed on kubernetes](/img/2b/eb39cf78b3bb9908b01f279e2f9958.png)
[kubernetes series] kubesphere is installed on kubernetes

Cell reports: Wei Fuwen group of the Institute of zoology, Chinese Academy of Sciences analyzes the function of seasonal changes in the intestinal flora of giant pandas

Pangu open source: multi support and promotion, the wave of chip industry

Splicing plain text into JSON strings - easy language method

How notepad++ counts words

期末周,我裂开

Responsive mobile web test questions

Set JTAG fuc invalid to normal IO port
随机推荐
Campus network problems
Industrial computer anti-virus
《剑指Offer》第2版——力扣刷题
在已經知道錶格列勾選一個顯示一列
【森城市】GIS数据漫谈(一)
【FreeRTOS】FreeRTOS學習筆記(7)— 手寫FreeRTOS雙向鏈錶/源碼分析
Deep understanding of redis -- a new type of bitmap / hyperloglgo / Geo
About how idea sets up shortcut key sets
测试用例的设计
Chain ide -- the infrastructure of the metauniverse
Label management of kubernetes cluster
用于压缩视频感知增强的多目标网络自适应时空融合
[FPGA tutorial case 8] design and implementation of frequency divider based on Verilog
Centos8 install mysql 7 unable to start up
图的底部问题
selenium IDE插件下载安装使用教程
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
Enter the year, month, and determine the number of days
Download address of the official website of national economic industry classification gb/t 4754-2017
Redis - detailed explanation of cache avalanche, cache penetration and cache breakdown