Setting mysql database in docker-compose?


Hi. I am new to Prisma and today I’ve got to access mysql with graphql with prisma.

I want to set my database for prisma manually but database attribute doesn’t seem to work.
I’ve set my prisma env like below

        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: secret
            database: talktalk
            connector: mysql

However when I tried the insert, the table mutates in default@default database instead of my talktalk database.

How can I change the database name that is used in prisma docker-compose?


This is already answered here.