当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- IDEA常用快捷键与插件
- [Swift] Customize the shortcut that pops up by clicking the APP icon
- Win10 CUDA CUDNN 安装配置(torch paddlepaddle)
- MySQL to revise the root password
- 识Flutter 基本组件之showTimePicker 方法
- Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
- Day32 LeetCode
- 进程间通信
- (Line segment tree) Summary of common problems of basic line segment tree
- MySQL 8.0.30 GA
猜你喜欢

Reinforcement learning: from entry to pit to shit

No qualifying bean of type question

Mysql 45 study notes (twenty-four) MYSQL master-slave consistency

端口排查步骤-7680端口分析-Dosvc服务

5. How does the SAP ABAP OData service support the $filter operation

从滴滴罚款后数据治理思考

C语言从入门到如土——数据的存储

Port inspection steps - 7680 port analysis - Dosvc service

Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)

"A daily practice, happy water problem" 1331. Array serial number conversion
随机推荐
open failed: EACCES (Permission denied)
Safety 20220712
Implementation of a sequence table
(4) Recursion, variable parameters, access modifiers, understanding main method, code block
Day32 LeetCode
$attrs/$listeners
type_traits元编程库学习
(tree) Last Common Ancestor (LCA)
RESTful api接口设计规范
Daily practice of LeetCode - 138. Copy a linked list with random pointers
RESTful api interface design specification
三子棋的代码实现
已解决(最新版selenium框架元素定位报错)NameError: name ‘By‘ is not defined
高等数学---第九章二重积分
LeetCode每日一练 —— OR36 链表的回文结构
Difference between unallocated blocks and unused blocks in database files
No qualifying bean of type 问题
识Flutter 基本组件之showTimePicker 方法
Redis 使用LIST做最新评论缓存
Safety 20220718