Skip to content

"npx prisma migrate dev" fails -> Error: P1001: Can't reach database server at localhost:3306 #21666

Closed Answered by janpio
ManuWeb3 asked this question in Q&A
Discussion options

You must be logged in to vote

If migrate dev does not work locally for you, then db push also does not work. Just run it to confirm.

This means that the problem is with your local database (or the connection string you are trying to use for it). It is not a general Prisma problem when talking to a MySQL database.

Replies: 6 comments 23 replies

Comment options

You must be logged in to vote
19 replies
@janpio
Comment options

@ManuWeb3
Comment options

@ManuWeb3
Comment options

@janpio
Comment options

Answer selected by ManuWeb3
@ManuWeb3
Comment options

@janpio
Comment options

@ManuWeb3
Comment options

@janpio
Comment options

Comment options

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

Comment options

You must be logged in to vote
2 replies
@laxmariappan
Comment options

@ManuWeb3
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

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

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
9 participants