Closed muminoff closed 8 years ago
I'm having the same problem.
migrate version
command output is vagrant@host:~$ migrate version
Driver '' not found.
Tried executing migrate
by hand
migrate -url postgres://vagrant@localhost:5432/sandbox-go-bootstrap?sslmode=disable -path $GOPATH/src/github.com/cengizIO/sandbox-go-bootstrap/migrations up
pq: password authentication failed for user "vagrant"
0.0020 seconds
Nope.
And with an explicit password:
migrate -url postgres://vagrant:vagrant@localhost:5432/sandbox-go-bootstrap?sslmode=disable -path $GOPATH/src/github.com/cengizIO/sandbox-go-bootstrap/migrations up
pq: password authentication failed for user "vagrant"
0.0020 seconds
same.
vagrant
user has permissions, so following session worksvagrant@host:~$ psql -d sandbox-go-bootstrap
psql (9.1.15)
Type "help" for help.
sandbox-go-bootstrap=#
Regards.
I will check this weekend.
@cengizIO: You should pass the password explicitly in the connection string, but not like you would for HTTP auth. Per the driver, it's a query argument to the connection string.
So, try:
migrate -url postgres://vagrant@localhost:5432/sandbox-go-bootstrap?sslmode=disable&password=vagrant
This approach worked for me.
Hi.
I am facing with DB password authentication failure issue when I run this command:
I was using
migrate
withgo-bootstrap
and it's author also points here in his commentThis is postgresql user
sardor
which was set as superuser:OS: Ubuntu 14.04.2 LTS PostgreSQL: 9.3.6 Go: 1.4
What might be the reason for it? Or postgresql configuration is not correct?
This is my
pg_hba.conf
:Tried with different methods:
No success.
Any suggestions?