2014-04-03 32 views
0

当在liquibase.local.properties文件中使用url="jdbc:mysql://127.0.0.1/mydbname"运行liquibase命令(状态,更新)时,我收到以下错误。liquibase是否支持local.properties文件中的jdbc mysql连接url?

Liquibase status Failed: 
liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: 
Connection could not be created to "jdbc:mysql://127.0.0.1/mydbname" with driver com.mysql.jdbc.Driver. 
Possibly the wrong driver for the given database URL 

如果我运行相同的命令,但通过在命令行中的URL它的作品。

+0

真的没有比这个例外更多吗? –

+0

这是完整的例外。我添加了换行符。 :) – gidmanma

+0

你真的在属性文件的URL周围有双引号吗?如果是,请尝试删除它们 –

回答

0

该错误可能是因为mysql驱动程序不在您的类路径中。 Liquibase正在识别该URL并尝试将com.mysql.jdbc.Driver配置为要使用的驱动程序,但它似乎无法找到它。