2014-04-03 35 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配置爲要使用的驅動程序,但它似乎無法找到它。