Skip to content

Couldn't connect my postgress while installing medusa. #4743

Answered by shahednasser
Fardeen-Awais asked this question in Q&A
Discussion options

You must be logged in to vote

@Fardeen-Awais with the latest update of create-medusa-app, you can set your database url by passing it as an option as follows:

npx create-medusa-app@latest --db-url postgres:://user:password@localhost:5432/giftstore

Make sure to pass the correct username, password, and port (by default it's 5432).

Please note that with the latest version there's an issue with using yarn create medusa-app. We've opened a PR to fix it, so please use npx or pnpm for now.

Replies: 8 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Fardeen-Awais
Comment options

@Fab1en
Comment options

Answer selected by Fardeen-Awais
Comment options

You must be logged in to vote
9 replies
@shahednasser
Comment options

@shahednasser
Comment options

@zaidrashid
Comment options

@shahednasser
Comment options

@zaidrashid
Comment options

Comment options

You must be logged in to vote
1 reply
@samuic
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet