0

第一次使用 SchemaCrawler,之前没有使用它的经验。

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

文档表明 xerial 的 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

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

4

1 回答 1

0

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

Sualeh Fatehi,SchemaCrawler

于 2017-07-17T19:46:57.377 回答