I’m running `npx prisma db push` to generate a sch...
# orm-help
j
I’m running
npx prisma db push
to generate a schema against a local MySQL database running in a docker container. I’m getting a no database selected error… which is a bit odd to me, esp given that this exact command was working a week ago. any thoughts on how I can specify a db?
Copy code
jay@Jays-Macbook-Air beam % npx prisma db push
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": MySQL database "readyset_beam" at "127.0.0.1:3307"
Error: No database selected
   0: sql_migration_connector::sql_database_step_applier::apply_migration
             at migration-engine/connectors/sql-migration-connector/src/sql_database_step_applier.rs:11
   1: migration_core::state::SchemaPush
             at migration-engine/core/src/state.rs:274
👀 1
1
r
HI @Jay Bensal 👋 Can you please share the content of your docker file? Also i do think you might not have specified the MYSQL_DATABASE in your configuration.
j
Thanks Raphael - I figured it out. It was an issue with how I had my database set up
thanks!
r
I'm glad you could figure it out.