Liquibase和SQLite [英] Liquibase and SQLite
本文介绍了Liquibase和SQLite的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何实际创建SQLite数据库文件?此命令将不起作用:
How do I go about actually creating a SQLite DB-file? This command won't work:
liquibase --driver=jdbc.driver.sqlite --changeLogFile=assets_db.xml --url=file.db update
出现错误:
Migration Failed: Cannot find database driver: jdbc.driver.sqlite
推荐答案
似乎您没有sqlite JDBC驱动程序.
It seems that you don't have the sqlite JDBC driver.
您是否已下载sqlite的JDBC驱动程序?如果没有尝试,请执行以下操作:
Have you downloaded the JDBC driver for sqlite? If not try this one:
http://www.zentus.com/sqlitejdbc/
正确的liquibase命令将是:
And the correct liquibase command will be:
liquibase --driver=org.sqlite.JDBC
希望这项工作对您有用.
Hope this work for you.
这篇关于Liquibase和SQLite的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文