You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 29, 2023. It is now read-only.
I had problems at step 5 when running migrations when copy pasting migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up
it gave me the error No matches for wildcard "migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up"
for me what made it work was to add double quotes for the database part migrate -database "postgres://postgres:password@localhost:5432/erupe?sslmode=disable" -path migrations up
Also I don't know why but for the 3rd step I had a problem with the command sudo su postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
where it said I couldn't create the folder because Permission denied so I ended up creating the folder myself then I changed the owner of the folder to postgres user.
The text was updated successfully, but these errors were encountered:
For the line that you posted in your issue: migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up
Did you replace the password segment in the line with the one you set up with your postgresql install? The section you need to look at is in bold below:
postgres://postgres: password@localhost:5432
I had problems at step 5 when running migrations when copy pasting
migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up
it gave me the error
No matches for wildcard "migrate -database postgres://postgres:password@localhost:5432/erupe?sslmode=disable -path migrations up"
for me what made it work was to add double quotes for the database part
migrate -database "postgres://postgres:password@localhost:5432/erupe?sslmode=disable" -path migrations up
Also I don't know why but for the 3rd step I had a problem with the command
sudo su postgres -c "initdb --locale en_US.UTF-8 -D '/var/lib/postgres/data'"
where it said I couldn't create the folder because
Permission denied
so I ended up creating the folder myself then I changed the owner of the folder to postgres user.The text was updated successfully, but these errors were encountered: