SchemaSpy PostgreSQL - WARN - Connection Failure

后端 未结 2 1687
温柔的废话
温柔的废话 2021-02-15 05:52

I try to connect to my PostgresSQL server using SchemaSpy. I installed Java using oracle-java8-installer from ppa:webupd8team/java.

(My Postgre

相关标签:
2条回答
  • 2021-02-15 06:25

    What happened to me is that, due to a connection problem, my download of postgresql-42.2.4.jar yielded an empty file, 0 bytes. I didn't notice it at first because the file was there, so I thought it was ok.

    So just make sure that your postgresql-42.2.4.jar is OK. Maybe re-download it.

    0 讨论(0)
  • 2021-02-15 06:45

    Ok I finally know what was the problem. This line schemaspy.dp=postgresql-42.2.4.jar should be added directly after definition of type of database. Now my schemaspy.properties file is:

    # type of database. Run with -dbhelp for details
    schemaspy.t=pgsql
    # optional path to alternative jdbc drivers.
    schemaspy.dp=postgresql-42.2.4.jar
    # database properties: host, port number, name user, password
    schemaspy.host=localhost:5431
    schemaspy.port=5431
    schemaspy.db=dbname
    schemaspy.u=dbuser
    schemaspy.p=dbpassword
    # output dir to save generated files
    schemaspy.o=/home/user/dump
    # db scheme for which generate diagrams
    schemaspy.s=public
    

    And works properly.

    0 讨论(0)
提交回复
热议问题