Hi guys, Error: `The table `publicProducts` does ...
# orm-help
n
Hi guys, Error: `The table
publicProducts
does not e exist in the current database.` The table publicProducts is ok in mySQL, the model publicProducts is also created In my pc, ok... I can GET the data, but in AWS I received this error How I can solve it? 😢😢
1
r
@Naotho Machida 👋 Does the database URL match the one on AWS? Sometimes that might be causing an issue.
n
Hi @Ryan, yes
MySQL is hosted in the same server
a
do you apply migrations ?
connect the database and make sure tables created
n
I run
npx prisma db push
after this I imported the mySQL
a
run npx prisma deploy,afterward npx prisma generate
it should create the tables
n
a
oh i mean npx prisma migrate deploy
n
ok! 😁
I think I'm skipping some step
Which step I deploy the prisma on other server?
a
why you don't create migrations
n
I've clonned my repo in AWS after I imported MySQL
a
you should read docs
n
ok!
I'll look at
a
run npx prisma migrate,then migrate deploy
n
Hi guys... solved the problem
When I've imported the db in mysql the name of table was all in lowercase
in dev table name = 'publicproducts' all ok
in AWS table name = 'publicproducts' but not works
I run
running npx prisma db push
and imported csv data exported from my local mySQL
and ok now!
Now AWS table is publicProducts (same name of model)
but in dev table is 'publicproducts' and works too