【发布时间】:2016-03-12 05:03:51
【问题描述】:
在 liquibase.local.properties 文件中使用 url="jdbc:mysql://127.0.0.1/mydbname" 运行 liquibase 命令(状态、更新)时,我收到以下错误。
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,它就可以工作。
【问题讨论】:
-
真的没有更多的例外吗?
-
那是完全的例外。我添加了换行符。 :)
-
属性文件中的 URL 周围真的有双引号吗?如果是,请尝试删除它们