当前位置:网站首页>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-07-31 04:11:00 【sebeefe】
在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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- beforeDestroy与destroyed的使用
- Component pass value provide/inject
- idea工程明明有依赖但是文件就是显示没有,Cannot resolve symbol ‘XXX‘
- 安全20220722
- Mysql 45 study notes (twenty-five) MYSQL guarantees high availability
- 浅识Flutter 基本组件之CheckBox组件
- Smartcom Programming Level 4 - Magic Academy Lesson 6
- $attrs/$listeners
- Basic knowledge of mysql (2)
- el-image tag doesn't work after binding click event
猜你喜欢
组件传值 provide/inject
MySQL基础操作
Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
Exsl file preview, word file preview web page method
[Swift] Customize the shortcut that pops up by clicking the APP icon
[C language] Three-pointed chess (classic solution + list diagram)
C语言从入门到如土——数据的存储
endian mode
Summary of Huawei Distributed Storage FusionStorage Knowledge Points [Interview]
随机推荐
(线段树) 基础线段树常见问题总结
MySQL基础操作
BP神经网络
The BP neural network
BUG destroyer!!Practical debugging skills are super comprehensive
A brief introduction to the showDatePicker method of the basic components of Flutter
C# 实现PLC的定时器
【AUTOSAR-RTE】-4-Port and Interface and Data Type
No qualifying bean of type 问题
[Paper reading] Mastering the game of Go with deep neural networks and tree search
安全20220709
MySQL 8.0.30 GA
errno错误码及含义(中文)
Postgresql 15 source code analysis (5) - pg_control
Reinforcement learning: from entry to pit to shit
浅识Flutter 基本组件之showDatePicker方法
(Line segment tree) Summary of common problems of basic line segment tree
C primer plus study notes - 8, structure
qlib自动化quant
open failed: EACCES (Permission denied)