当前位置:网站首页>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 !
边栏推荐
- 高薪程序员&面试题精讲系列119之Redis如何实现分布式锁?
- Mobile adaptation: vw/vh
- 【GF(q)+LDPC】基于二值图GF(q)域的规则LDPC编译码设计与matlab仿真
- Vulhub vulnerability recurrence 76_ XXL-JOB
- 2022, peut - être la meilleure année économique de la prochaine décennie, avez - vous obtenu votre diplôme en 2022? Comment est - ce prévu après la remise des diplômes?
- Splicing plain text into JSON strings - easy language method
- 云Redis 有什么用? 云redis怎么用?
- Pangu open source: multi support and promotion, the wave of chip industry
- 电子协会 C语言 1级 35 、银行利息
- Tar source code analysis 8
猜你喜欢
Zhanrui tankbang | jointly build, cooperate and win-win zhanrui core ecology
Uniapp applet subcontracting
Bottom problem of figure
Computer connects raspberry pie remotely through putty
Four sets of APIs for queues
Review of enterprise security incidents: how can enterprises do a good job in preventing source code leakage?
Adaptive spatiotemporal fusion of multi-target networks for compressed video perception enhancement
Responsive mobile web test questions
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
[Valentine's day] - you can change your love and write down your lover's name
随机推荐
Tar source code analysis 4
How does the recv of TCP socket receive messages of specified length?
Cervical vertebra, beriberi
2022年,或許是未來10年經濟最好的一年,2022年你畢業了嗎?畢業後是怎麼計劃的?
MySQL storage engine
Shopping malls, storerooms, flat display, user-defined maps can also be played like this!
Highly paid programmers & interview questions: how does redis of series 119 realize distributed locks?
MySQL 45 lecture learning notes (12) MySQL will "shake" for a while
Tar source code analysis Part 10
Pangu open source: multi support and promotion, the wave of chip industry
Electronic Association C language level 1 34, piecewise function
Label management of kubernetes cluster
notepad++如何统计单词数量
Tar source code analysis 6
Summary of MySQL common judgment functions!! Have you used it
Tar source code analysis Part 3
MySQL relearn 2- Alibaba cloud server CentOS installation mysql8.0
what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
Review of enterprise security incidents: how can enterprises do a good job in preventing source code leakage?
Paddleocr prompt error: can not import AVX core while this file exists: xxx\paddle\fluid\core_ avx