Skip to content
Discussion options

You must be logged in to vote

Hey @redsuperbat 👋
You cannot directly create schema.prisma from a dump. You would need to connect to an existing database that has your data or import the dump that you have back in the DB.

Then, to add your tables to a schema.prisma file from your database is easy by using Introspection

As you're using MySQL, you would need to follow this tutorial to setup Prisma with an existing database.

Let me know if it works :)

Replies: 4 comments 2 replies

Comment options

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

Answer selected by redsuperbat
Comment options

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

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