Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignored port definition in properties file #111

Closed
filipemanuelofs opened this issue Jun 20, 2017 · 3 comments
Closed

Ignored port definition in properties file #111

filipemanuelofs opened this issue Jun 20, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@filipemanuelofs
Copy link

Trying to generate diagram from database which port is different from default 5432, but doesn't matter, the error that I get in console is from port 5432:

Console

$ java -jar schemaspy6.jar -configFile schemaspy.properties

12:19:32.315 WARNING: Main.main - Connection Failure
org.schemaspy.model.ConnectionFailure: org.postgresql.util.PSQLException: Connection to database:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

schemaspy.properties

schemaspy.t=pgsql
schemaspy.dp=/home/schemaspy/postgresql-42.0.0.jar
schemaspy.host=host
schemaspy.port=5444
schemaspy.db=database
schemaspy.u=user
schemaspy.p=root
schemaspy.o=/home/schemaspy/generated

@npetzall
Copy link
Member

@filipemanuelofs check #109

@npetzall
Copy link
Member

connectionSpec=jdbc:postgresql:///
host=hostname[:port] (possibly just localhost)
db=database name

Port should be added to host. Such as
schemaspy.host=host:port

@filipemanuelofs
Copy link
Author

It works, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants