Seungsu Kim
06/24/2020, 10:51 AMversion: "3"
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
databases:
default:
connector: mysql
host: mysql
port: 3306
user: root
password: password
database: drcha
mysql:
image: mysql:5.7
restart: always
environment:
MYSQL_ROOT_PASSWORD: password
volumes:
- mysql:/var/lib/mysql
volumes:
mysql: ~
nikolasburk
prisma.yml
. Can you share what your endpoint
looks like in there?nikolasburk
default$default
(or default*@*default
)Seungsu Kim
06/24/2020, 10:55 AMSHOW DATABASES;
in mysql console, there are no DB such as default@defaultSeungsu Kim
06/24/2020, 10:56 AMDATABASE_URL="<mysql://root>:choi3704@localhost:3306/"
this is a endpoint used by Prisma2 client. the databse name part is empy because I don’t know it yet.Seungsu Kim
06/24/2020, 10:56 AMnikolasburk
endpoint
in prisma.yml
?Seungsu Kim
06/24/2020, 10:57 AMendpoint: <http://localhost:4466>
this is the endpointnikolasburk
if I typeHmm that's strange! Can you connect to the MySQL server with a DB client like TablePlus and see if it shows you any existing databases?in mysql console, there are no DB such as default@defaultSHOW DATABASES;
nikolasburk
default@default
in that case, this is explained in the docs here 🙂Seungsu Kim
06/24/2020, 11:01 AMjoar
06/24/2020, 12:47 PMjoar
06/24/2020, 12:50 PMports:
- "3306:3306"
to your mysql service, and then you can connect to it on that port (not tested, might be mistaken, works for postgresql)