当前位置:网站首页>ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
2022-08-02 00:16:00 【m0_67391518】
在MySQL中导入.sql文件时
通过
use data
source C:/info.sql
use data(数据库名称为data)
source C:/info.sql(提前把.sql文件放入一个不太复杂的文件夹,路径中最好不要有中文)
遇到ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘浼氬憳鍚峘 varchar(255) DEFAULT NULL,
`鎬у埆` varchar(255) DEFAULT NUL’ at line 3
貌似能读入两行,但到第三行出现了问题
开始以为.sql文件有问题,后来想到可能时编码的问题
经查读到SQL-mysql设置utf8编码方法这篇文章(83条消息) SQL-mysql设置utf8编码方法_yu-Knight的博客-CSDN博客_sql utf-8读到最第四部分,受到启示
在导入.sql文件之前加入一行代码 set names utf8;
这时候再导入就愉快地看到跑马灯使得导入数据了。
先自我介绍一下,小编13年上师交大毕业,曾经在小公司待过,去过华为OPPO等大厂,18年进入阿里,直到现在。深知大多数初中级java工程师,想要升技能,往往是需要自己摸索成长或是报班学习,但对于培训机构动则近万元的学费,着实压力不小。自己不成体系的自学效率很低又漫长,而且容易碰到天花板技术停止不前。因此我收集了一份《java开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- Mean Consistency Tracking of Time-Varying Reference Inputs for Multi-Agent Systems with Communication Delays
- 哪里有期货开户的正规途径?
- Constructor, this keyword, method overloading, local variables and member variables
- 【CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!)(A~D)】
- These 4 computer notepad software, you have to try
- What is the function of the JSP out.println() method?
- MLX90640 红外热成像仪测温传感器模块开发笔记(十) 成果展示-红眼睛相机
- 23.卷积神经网络实战-ResNet
- What is it like to trade for a living?
- ICML 2022 | GraphFM:通过特征Momentum提升大规模GNN的训练
猜你喜欢
CVPR 2022 | SharpContour:一种基于轮廓变形 实现高效准确实例分割的边缘细化方法
Stapler:1 靶机渗透测试-Vulnhub(STAPLER: 1)
poker question
Automatic conversion of Oracle-style implicit joins to ANSI JOINs using jOOQ
632. Minimum interval
攻防世界-web-Training-WWW-Robots
期货开户手续费加一分是主流
磁盘与文件系统管理
nodeJs--mime module
Double queue implementation stack?Dual stack implementation queue?
随机推荐
DFS详解
go笔记之——goroutine
磁盘与文件系统管理
How does JSP use the page command to make the JSP file support Chinese encoding?
Don't know about SynchronousQueue?So ArrayBlockingQueue and LinkedBlockingQueue don't and don't know?
CVPR 2022 | SharpContour:一种基于轮廓变形 实现高效准确实例分割的边缘细化方法
What is the function of the JSP out.println() method?
MLX90640 红外热成像仪测温模块开发笔记(完整版)
Redis 相关问题
After reshipment tencent greetings to monitor if the corresponding service does not exist by sc. Exe command to add services
06-SDRAM : SDRAM control module
JSP built-in object out object function introduction
JSP 如何获取request对象中的路径信息呢?
Looking back at 5 recessionary times in history: How might this time be different?
Double queue implementation stack?Dual stack implementation queue?
第 45 届ICPC亚洲区域赛(上海)G-Fibonacci
具有通信时延的多自主体系统时变参考输入的平均一致性跟踪
哪里有期货开户的正规途径?
Automatic conversion of Oracle-style implicit joins to ANSI JOINs using jOOQ
Arduino Basic Syntax