Setting mysql database in docker-compose?


#1

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

    environment:
      PRISMA_CONFIG: |
        port: 4466
        # uncomment the next line and provide the env var PRISMA_MANAGEMENT_API_SECRET=my-secret to activate cluster security
        # managementApiSecret: secret
        databases:
          default:
            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?


#2

This is already answered here. https://github.com/prisma/prisma/issues/3664