Closed Crandel closed 2 years ago
It doesn't ignore it. You're connecting to the default port 5432
but have 5433
in your .usqlpass
file, which doesn't match. .usqlpass
can't change defaults.
It doesn't ignore it. You're connecting to the default port
5432
but have5433
in your.usqlpass
file, which doesn't match..usqlpass
can't change defaults.
But I mentioned port 5433
here postgres:localhost:5433:db:db:pass
in .usqlpass
.
Can you try running usql pg://localhost:5433
or usql pg://postgres@localhost:5433
?
@Crandel the issue is that the way the pass file works is that it matches the URL you're putting in, and fills in the missing fields. You would need to do usql postgres://<host>:5433
in order to use what you listed in your pass file.
Now it works, thank you!
aur/usql 0.12.13-1
Arch linuxMy
~/.usqlpass
(with 0600 permission)I was trying to connect
But as you can see
usql
ignore host and port settingsAlso I was trying with
?sslmode=disable
. Result is the samepostgres url works fine