-
Hi Prisma community env Url is:
the prisma Schema as simple as the documentation :datasource db {
provider = "mysql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
} I get the error as below when 'npx prisma migrate dev'
I do all the required mysql configuration and reset the mysql password but nothing changed:(
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @Mahyab 👋 Thank you for raising this question. The error message mysql://USER:PASSWORD@HOST:PORT/DATABASE
Ensure that the MySQL server is running and accessible at the specified host and port. Make sure that the user root has the necessary permissions to access the nextapp database on your MySQL server. Try resetting the password for the root user again, and update the DATABASE_URL accordingly. Also, ensure you do not have a |
Beta Was this translation helpful? Give feedback.
Thanks for replying
I reset the database server password, that doesn't work،
After that I realized that I used special characters as #€ in mysql password
So I've used percent encoding in database password as below
https://stackoverflow.com/questions/63684133/prisma-cant-connect-to-postgresql