我正在尝试可视化 sqlite 数据库。有几个页面在讨论这个问题,但这些解决方案都没有对我有用可视化数据库模式或使用 sqlfairy或SchemaDisplay轻松可视化的好工具。似乎问题出在 SQLite.JDBCDriver 上。这是关于java 和 sqlite的讨论,但我无法弄清楚。我所做的是将 sqlite-jdbc-3.7.2.jar 重命名为 sqlite.jar 希望这会有所帮助,但你可以看到运气不好。
[pista@HP-PC schemaspy]$ ls -l
total 7084
drwxrwxr-x 3 pista pista 4096 Dec 12 22:34 javasqlite
drwxrwxr-x 2 pista pista 4096 Dec 12 22:05 lib
drwxrwxr-x 14 pista pista 4096 Dec 12 22:15 mendeley
drwxrwxr-x 2 pista pista 4096 Dec 12 22:13 out
drwxrwxr-x 2 pista pista 4096 Dec 12 22:05 properties
-rw-rw-r-- 1 pista pista 2655 Feb 22 2009 README.TXT
-rw-rw-r-- 1 pista pista 248945 Aug 16 2010 schemaSpy_5.0.0.jar
-rw-rw-r-- 1 pista pista 161441 Dec 12 22:04 schemaSpyGUI20090302.zip
-rw-rw-r-- 1 pista pista 26 Nov 4 2007 schemaSpyGUI.bat
-rw-rw-r-- 1 pista pista 102299 Mar 2 2009 schemaSpyGUI.jar
-rw-rw-r-- 1 pista pista 86 Nov 18 2007 schemaSpyGUI.sh
-rw-rw-r-- 1 pista pista 284954 Dec 12 22:25 sqlite-dll-win32-x86-3070701.zip
-rw-rw-r-- 1 pista pista 3201128 Dec 12 22:28 sqlite.jar
-rw-rw-r-- 1 pista pista 3201128 Aug 27 2010 sqlite-jdbc-3.7.2.jar
drwxrwxr-x 3 pista pista 4096 Dec 12 22:05 src
drwxrwxr-x 2 pista pista 4096 Dec 12 22:31 xerial
drwxrwxr-x 7 pista pista 4096 Dec 12 22:31 xerial-sqlite-jdbc-e0fd4e05a97e
[pista@HP-PC schemaspy]$ java -jar schemaSpy_5.0.0.jar -t sqlite -u pista -o out/ -db mendeley/wakatana@gmail.com@www.mendeley.com.sqlite
Using database properties:
[schemaSpy_5.0.0.jar]/net/sourceforge/schemaspy/dbTypes/sqlite.properties
java.lang.ClassNotFoundException: SQLite.JDBCDriver
Failed to load driver 'SQLite.JDBCDriver'from: [file:/home/pista/schemaspy/sqlite.jar]
Use the -dp option to specify the location of the database
drivers for your database (usually in a .jar or .zip/.Z).
我做错了什么,这是好方法吗?