当前位置:网站首页>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 !
边栏推荐
- Analysis of tars source code 1
- Highly paid programmers & interview questions: how does redis of series 119 realize distributed locks?
- Label management of kubernetes cluster
- com. alibaba. nacos. api. exception. NacosException
- the input device is not a TTY. If you are using mintty, try prefixing the command with ‘winpty‘
- Research on an endogenous data security interaction protocol oriented to dual platform and dual chain architecture
- Mobile adaptation: vw/vh
- selenium IDE插件下载安装使用教程
- Four sets of APIs for queues
- Su Weijie, a member of Qingyuan Association and an assistant professor at the University of Pennsylvania, won the first Siam Youth Award for data science, focusing on privacy data protection, etc
猜你喜欢
what the fuck! If you can't grab it, write it yourself. Use code to realize a Bing Dwen Dwen. It's so beautiful ~!
Experience installing VMware esxi 6.7 under VMware Workstation 16
Crawler (III) crawling house prices in Tianjin
Splicing plain text into JSON strings - easy language method
Uniapp applet subcontracting
Computer connects raspberry pie remotely through putty
关于IDEA如何设置快捷键集
selenium驱动IE常见问题解决Message: Currently focused window has been closed.
"Sword finger offer" 2nd Edition - force button brush question
Recursive Fusion and Deformable Spatiotemporal Attention for Video Compression Artifact Reduction
随机推荐
响应式——媒体查询
[kubernetes series] kubesphere is installed on kubernetes
centos8安装mysql.7 无法开机启动
《剑指Offer》第2版——力扣刷题
Tar source code analysis 4
BasicVSR++: Improving Video Super-Resolutionwith Enhanced Propagation and Alignment
Chain ide -- the infrastructure of the metauniverse
flask-sqlalchemy 循环引用
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
同一个job有两个source就报其中一个数据库找不到,有大佬回答下吗
Selenium driver ie common problem solving message: currently focused window has been closed
uniapp小程序分包
【FPGA教程案例7】基于verilog的计数器设计与实现
About how idea sets up shortcut key sets
[GF (q) + LDPC] regular LDPC coding and decoding design and MATLAB simulation based on the GF (q) field of binary graph
移动适配:vw/vh
Since DMS is upgraded to a new version, my previous SQL is in the old version of DMS. In this case, how can I retrieve my previous SQL?
The cloud native programming challenge ended, and Alibaba cloud launched the first white paper on application liveliness technology in the field of cloud native
Boosting the Performance of Video Compression Artifact Reduction with Reference Frame Proposals and
Lottery system test report