当前位置:网站首页>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开发全套学习资料》送给大家,初衷也很简单,就是希望帮助到想自学又不知道该从何学起的朋友,同时减轻大家的负担。添加下方名片,即可获取全套学习资料哦
边栏推荐
- Kunpeng compile and debug plug-in actual combat
- What is Low-Code?What scenarios is low code suitable for?
- [21-Day Learning Challenge] A small summary of sequential search and binary search
- Mean Consistency Tracking of Time-Varying Reference Inputs for Multi-Agent Systems with Communication Delays
- 如何期货开户和选择期货公司?
- Are test points the same as test cases?
- 思维导图,UML在线画图工具
- 管理基础知识17
- Microsoft PC Manager V2.1 beta version officially released
- DOA从一维阵列传感说起
猜你喜欢
随机推荐
期货开户调整交易所保证金标准
第 45 届ICPC亚洲区域赛(上海)G-Fibonacci
uni-app project summary
思维导图,UML在线画图工具
Unknown CMake command “add_action_files“
Grid false data injection attacks detection based on coding strategy
How to design a circular queue?Come and learn~
DFS详解
460. LFU cache
JSP 如何获取request对象中的路径信息呢?
基于超参数自动寻优的工控网络入侵检测
Multi-feature fusion face detection based on attention mechanism
交返是做日内交易的必要条件
Angr(十二)——官方文档(Part3)
go笔记记录——channel
go笔记——锁
JSP built-in object out object function introduction
632. Minimum interval
抖音数据接口API-获取用户主页信息-监控直播开启
go笔记——map








