schemacrawler sqlite3没有合适的驱动程序

时间:2017-07-16 17:25:37

标签: sqlite jdbc driver schemacrawler

首次使用SchemaCrawler,之前没有使用它。

Ubuntu 16.04.2,使用adriens deb软件包安装了SchemaCrawler。

文档表明xcade的jdbc驱动程序支持sqlite开箱即用。

使用以下命令行:

schemacrawler -url = sqlite://db/testdb.sqlite3 -server = sqlite -c = brief -loglevel = CONFIG -i = standard -host = localhost

我得到了这个输出:

SEVERE: Could not find a suitable JDBC driver for database connection URL, sqlite://db/testdb.sqlite3
schemacrawler.schemacrawler.SchemaCrawlerSQLException: Could not find a suitable JDBC driver for database connection URL, sqlite://db/testdb.sqlite3
    at schemacrawler.schemacrawler.BaseDatabaseConnectionOptions.getJdbcDriver(BaseDatabaseConnectionOptions.java:370)
at schemacrawler.schemacrawler.BaseDatabaseConnectionOptions.createConnectionProperties(BaseDatabaseConnectionOptions.java:317)
at schemacrawler.schemacrawler.BaseDatabaseConnectionOptions.getConnection(BaseDatabaseConnectionOptions.java:147)
at schemacrawler.schemacrawler.BaseDatabaseConnectionOptions.getConnection(BaseDatabaseConnectionOptions.java:106)
at schemacrawler.tools.commandline.SchemaCrawlerCommandLine.execute(SchemaCrawlerCommandLine.java:129)
at schemacrawler.Main.main(Main.java:90)
Caused by: java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:315)
at schemacrawler.schemacrawler.BaseDatabaseConnectionOptions.getJdbcDriver(BaseDatabaseConnectionOptions.java:365)
... 5 more

毫无疑问,有一个简单的解决方案。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

不要使用-url=sqlite://db/testdb.sqlite3命令行参数,因为您已经在使用-server=sqlite。相反,请使用-database=db/testdb.sqlite3

Sualeh Fatehi,SchemaCrawler