ERROR 1064 (42000) You have an error in your SQL syntax; check the manual that corresponds to your
在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相关推荐
- 【报错】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 ...
- 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 ...
- 报错,> 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 ...
- 创建存储过程报错: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 ...
- 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 ...
- 数据库报错: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 ...
- 错误: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 ...
- 解决 ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds
很大可能是语法错误,检查一下是否有语法错误应该就可以解决. [ps]我本人可太马虎了...
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to yo
今天踩了一个坑,报这种错误首先你可能会想到先去检查自己的SQL有没有写错,如果发现自己的SQL语句没有写错,那么就要注意了!经过排查才发现如下: 自己在数据库中原来使用的是order作为表名,而ord ...
最新文章
- 2021年大数据HBase(七):Hbase的架构!【建议收藏】
- A fuzzy Bruijn graph approach to long noisy reads assembly
- notepad宏的使用,定制各种操作,比如删除一整行、从当前位置到行末用某字符替换
- 省市区三级联动 数据精确到乡镇一级
- nginx 还是欢迎界面_初识Nginx性能安全优化
- 把txt中的数据读出并保存到数组中
- 【项目管理和构建】——Maven简介(一)
- python中matrix是什么意思_Python的基础语法
- 贝叶斯分析好坏_贝叶斯统计 | 第五章第一部分 决策基本概念
- Java:出生日期转年龄
- footer置底的几种方式
- 名校硕士宅家啃老:你替孩子走的路,最后都成了坑
- react 组件中使用组件_禁止使用React功能组件的7个理由
- 网际控制报文协议---ICMP
- Windows10安装Jmeter(图文教程)
- Java单例模式之最优解分析【为何说是最优解】
- java中的枚举_Java中的枚举
- 配置文件解析利器-Config库
- VGG16整体框架图
- outlook qr码在哪里_聚合码微信支付宝申请开通,商家融合收款码实现一码支付,如何申请微信和支付宝合并收款码?聚合码支持信用卡、花呗、微信和支付宝收款...