mysql导入sql文件、数据库时报错ERROR: ASCII '\0' appeared in the statement
2018-01-10 15:16
639 查看
window环境下mysql导入sql文件时报错:ERROR: ASCII ‘\0’ appeared in the statement
错误原因
文件编码不正确解决办法
下载UltraEdia对文件进行转码;如果是使用powershell导出的sql文件
powershell导出的sql文件有问题。测试表明,使用CMD导出的文件不会报错;使用powershell导出的文件出错。
解决办法
使用CMD导出;使用CMD执行mysqldump命令即可。涉及sql导出,都不要使用PowerShell。相关文章推荐
- window环境下mysql导入sql文件时报错:ERROR: ASCII '\0' appeared in the statement
- 导入mysql文件提示“ASCII '\0' appeared in the statement”
- 【mysql】 mysql备份还原时发生异常:导入mysql文件提示“ASCII '\0' appeared in the statement”
- mysql sqlserver hibernate 有数据库关键字 You have an error in your SQL syntax; check the manual that corres
- Hibernate 与 MySql 数据库关键字冲突You have an error in your SQL syntax; check the manual
- mysql导入导出.sql文件备份还原数据库
- 如何在cmd状态下 导入 mysql 的 sql文件到数据库中
- java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for
- 解析MYSQL 数据库导入SQL 文件出现乱码的问题
- 解析MYSQL 数据库导入SQL 文件出现乱码的问题
- MYSQL 数据库导入 SQL 文件出现乱码的问题
- 创建存储过程错误(已解决):Error Code : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server ver
- mysql 执行 大数据 sql文件 与 集群结构 授权 数据库导出导入
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use
- mysql导入导出.sql文件备份还原数据库[mysql导入导出sql命令行]
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version
- SQL Error:An aggregate may not appear in the set list of an UPDATE statement.
- mysql导入导出.sql文件备份还原数据库[mysql导入导出sql命令行]
- Mysql 数据库导入导出 sql文件导入导出 命令 详解~~Myself