在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;

这时候再导入就愉快地看到跑马灯使得导入数据了。

ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your相关推荐

  1. 【报错】ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds t

    设置mysql中的root账户密码出现1064错误代码 ERROR 1064 (42000): You have an error in your SQL syntax; check the manu ...

  2. ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your

    mysq5.7中报错 执行下面语句报错 mysql> grant replication slave on . to 'myslave'@'192.168.136.%' identified b ...

  3. 报错,> 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL

    错误: idea: 2020-12-23 15:26:13.885 ERROR 17972 --- [MessageBroker-2] o.h.engine.jdbc.spi.SqlException ...

  4. 创建存储过程报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQ

    自己写了一个创建存储过程的语句: create procedure abcd() begin       select * from area; end ; 语法什么的都没有错误,但是提示报错:106 ...

  5. You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version

    最近在学python爬虫,再写入数据的时候写不进数据库.报了这个很常见的异常 pymysql.err.ProgrammingError: (1064, "You have an error ...

  6. 数据库报错:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server v

    数据库出现 [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your M ...

  7. 错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server vers

    错误:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server vers ...

  8. 解决 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds

    很大可能是语法错误,检查一下是否有语法错误应该就可以解决. [ps]我本人可太马虎了...

  9. java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to yo

    今天踩了一个坑,报这种错误首先你可能会想到先去检查自己的SQL有没有写错,如果发现自己的SQL语句没有写错,那么就要注意了!经过排查才发现如下: 自己在数据库中原来使用的是order作为表名,而ord ...

最新文章

  1. 2021年大数据HBase(七):Hbase的架构!【建议收藏】
  2. A fuzzy Bruijn graph approach to long noisy reads assembly
  3. notepad宏的使用,定制各种操作,比如删除一整行、从当前位置到行末用某字符替换
  4. 省市区三级联动 数据精确到乡镇一级
  5. nginx 还是欢迎界面_初识Nginx性能安全优化
  6. 把txt中的数据读出并保存到数组中
  7. 【项目管理和构建】——Maven简介(一)
  8. python中matrix是什么意思_Python的基础语法
  9. 贝叶斯分析好坏_贝叶斯统计 | 第五章第一部分 决策基本概念
  10. Java:出生日期转年龄
  11. footer置底的几种方式
  12. 名校硕士宅家啃老:你替孩子走的路,最后都成了坑
  13. react 组件中使用组件_禁止使用React功能组件的7个理由
  14. 网际控制报文协议---ICMP
  15. Windows10安装Jmeter(图文教程)
  16. Java单例模式之最优解分析【为何说是最优解】
  17. java中的枚举_Java中的枚举
  18. 配置文件解析利器-Config库
  19. VGG16整体框架图
  20. outlook qr码在哪里_聚合码微信支付宝申请开通,商家融合收款码实现一码支付,如何申请微信和支付宝合并收款码?聚合码支持信用卡、花呗、微信和支付宝收款...

热门文章

  1. 代码无错就是无优?简单工厂模式------大话设计模式
  2. linux uImage/zImage生成过程
  3. 基于雪花算法生成用户id
  4. 关于JAVAOO项目
  5. 浅谈:没有电脑的站长如何做站
  6. windows 休眠后风扇狂转的解决方法
  7. 重谈堆栈方向和栈溢出的利用(栈溢出攻击原理)
  8. 出奇制胜:绕过Cloudflare验证的神秘方法
  9. 迎接物联网时代,路由器不将就,换机潮不可阻挡
  10. 转行前端是自学好还是培训班好