liquibase mysql_Liquibase MySQL:语法错误附近'????????????????'
我正尝试使用以下参数运行liquibase(默认参数,仅修改路径):
liquibase --driver=com.mysql.jdbc.Driver \
--classpath=mysql-connector-java-5.1.20-bin.jar
--changeLogFile=changelog.xml \
--url="jdbc:mysql://localhost/example" \
--username=root \
migratechangelog.xml非常小:
<?xml version="1.0" encoding="UTF-8"?>
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
我得到的错误是:
Liquibase Update Failed: 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 '????????????????' at line 1 SEVERE 6/5/12 2:42
a.m.:liquibase: 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 '????????????????' at line 1
liquibase.exception.DatabaseException:
com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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 '????????????????' at
line 1 at
liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:111)
at liquibase.integration.commandline.Main.doMigration(Main.java:745)
at liquibase.integration.commandline.Main.main(Main.java:134) Caused
by: com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: 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
'????????????????' at line 1 at
com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1049) at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4096) at
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4028) at
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2490) at
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2651) at
com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2677) at
com.mysql.jdbc.ConnectionImpl.configureClientCharacterSet(ConnectionImpl.java:1943)
at
com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3541)
at
com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2443)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2213)
at com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:797) at
com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
at
com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:305)
at
liquibase.integration.commandline.CommandLineUtils.createDatabaseObject(CommandLineUtils.java:101)
...2 more
不知道是什么原因造成的。我正在运行liquibase 2.0.5。
谢谢。
liquibase mysql_Liquibase MySQL:语法错误附近'????????????????'相关推荐
- mysql语法错误文件_使用logstash同步MySQL的数据时,在jdbc查询sql文件时报sql语法错误,sql文件是navicat生成的...
使用logstash同步MySQL的数据时,在jdbc查询sql文件时报sql语法错误,并且错误总是near在第1行,sql文件的编码是utf8mb64 ,不知道是否是编码问题 logstash配置j ...
- mysql3错误_第3行MYSQL语法错误
我第一次尝试将大量数据写入MYSQL数据库.我正在使用以下插入查询: if ($_POST['SubmitSave'] ) { $connection = mysql_connect($host, $ ...
- mysql 语法错误检查,解决引号的使用错误1064(42000):SQL语法有错误;检查与您的MySQL服务器版本相对应的手册以使用正确的语法?...
在MySQL中,可以使用两种不同类型的引号,即反引号和另一种是单引号或双引号.在这种情况下,也许您对列名使用了单引号,这就是为什么会出错.您需要使用反引号(``)而不是单引号.Backtick可以与列 ...
- mysql语法错误1064_MySQL语法错误#1064
我正在尝试创建家庭作业项目所需的表格,并且遇到以下错误(使用000webhost): #1064 - You have an error in your SQL syntax; check the m ...
- mysql存储过程中as_mysql - 存储过程mySQL语法错误意外“ AS” - 堆栈内存溢出
我正在编写一个存储过程,如下所示 我得到的错误是在第3行和第4行,这两个错误是第3行是"意外的'发布者'标识符",第4行是"意外的AS(as)",但我不知道我是 ...
- mysql语法错误:Every derived table must have its own alias
mysql查询报错如图 报错原因 every derived table must have it own alias 翻译过来就是:每一个派生出来的表都必须有一个自己的别名. 就是说子查询没有别名 ...
- [mysql语法错误]--Cannot load connection class because of underlying exception
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionExce ...
- mysql语法错误文件_Flyway MySQL语法错误
我终于找到了问题的原因. 在我的剧本中我有: ... ... /* INSERT statement LAST - 1 */ INSERT INTO `table_1` (`id`, `string_ ...
- CMD数据库备份与恢复拒绝访问及MySQL语法错误
出现1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL serve ...
最新文章
- java获得项目绝对路径
- 目标跟踪数据集OTB、VOT下载
- mysql5.7.17配置_mysql5.7.17安装配置
- python全栈开发第36天------GIL全局解释锁、死锁现象和递归锁、信号量、Event事件、线程...
- jQuery常用方法(二)-事件
- Uncaught TypeError: Cannot read property 'value'' of null
- 网络上经典的DOS小命令
- 数据增强 数据集扩充_数据扩充的抽象总结
- 基于EasyUI的Web应用程序及过去一年的总结
- [初级]Java中的switch对整型、字符型、字符串的具体实现细节
- 基于HTTP请求头字段 User-Agent用户环境 开发多端应用
- python搭建https代理服务器_使用NGINX作为HTTPS正向代理服务器
- 极点五笔的一些快捷键
- Windows自动校正系统时间
- IT行业歧视40岁以上人群为找工作还要谎报年龄[转]
- 宏基aspire 4920 win10录音没有声音解决方法
- yarn serve yarn : 无法加载文件 D:\node\node_global\yarn.ps1,因为在此系统上禁止运行脚本。
- 伸缩门遥控器c语言程序,伸缩门遥控器匹配方法是什么呢? 如何学会电动门的遥控编码...
- 战斗系统之属性设计(一)
- 干货分享!电子商务设计师备考学习方法
热门文章
- oracle 中update select 和连接字符串配合使用
- GitBook是一个命令行工具(Node.js库),我们可以借用该工具使用Github/Git和Markdown来制作精美的图书,但它并不是一本关于Git的教程哟。...
- C语言中的多字节字符与宽字符
- [拇指飞动]读《程序员修炼之道:从小工到专家》
- C++_类和对象_对象特性_友元_友元类_在一个类中声明另一类作为自己的友元类_可以访问自己类中的private变量---C++语言工作笔记053
- STM32工作笔记004---了解高速版PCB设计Cadence
- 人工智能TensorFlow工作笔记007---认识张量
- warpctc error
- 深度理解cnn 网络
- 线段树的入门级 总结