Hi guys! Prisma is able to work with MySQL backend...
# orm-help
i
Hi guys! Prisma is able to work with MySQL backend, but how can an already existing MySQL app be migrated to Prisma? I can't find any steps for that beyond "write SDL definitions". I get that there is no introspection capabilities for MySQL? Let's say I put all my definitions to datamodel.prisma, then what? How to import the old data? I see Prisma is using the local DB with name "default@default". Should I write a service that gets old data and copies it to this DB? Is there more automated way to do this? This could be painful for an app with more than a few tables.
g
As I know, you can use an existing database only if it is on postgres no on MySQL
d
This is correct, we do not support introspection on MySQL yet. This is the open feature request that tracks this: https://github.com/prisma/prisma/issues/2506