SchemaSpy-连接失败

时间:2019-09-14 14:19:27

标签: postgresql jdbc schemaspy

我想可视化数据库并尝试使用SchemaSpy,但无法连接到数据库。这是一个mysql数据库,在我的计算机上运行,​​可在localhost下访问,我使用以下命令调用了SchemaSpy:

java -jar schemaspy-6.0.0.jar -t mysql -dp postgresql-42.2.7.jar -db <name> -host <host> -p <port> -s <name> -u <user> -p <password> -o ./output/

我下载了 postgresql-42.2.7.jar 作为驱动程序,并在调用中设置了相应的参数。我也尝试过完全不设置驱动程序,但是并没有改变输出。

尝试运行SchemaSpy后收到以下错误消息:

SchemaSpy generates an HTML representation of a database schema's relationships.
SchemaSpy comes with ABSOLUTELY NO WARRANTY.
SchemaSpy is free software and can be redistributed under the conditions of LGPL version 3 or later.
http://www.gnu.org/licenses/

INFO  - Starting Main v6.0.0 on ####### with PID 10774 (/path/to/file started by ##### in /path/to/file)
INFO  - The following profiles are active: default
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/path/to/file/schemaspy-6.0.0.jar!/BOOT-INF/lib/spring-core-4.3.13.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
INFO  - Found configuration file: schemaspy.properties
INFO  - Started Main in 1.397 seconds (JVM running for 1.944)
INFO  - Starting schema analysis
WARN  - Connection Failure

我还尝试设置--illegal-access = warn参数,但没有更改。

有人知道可能是什么问题吗?

非常感谢!

0 个答案:

没有答案